/*
Theme Name: BlogVerse
Theme URI: https://yourdomain.com/
Author: Your Name
Author URI: https://yourdomain.com/
Description: A fully dynamic Bangla blog theme with 100% customizable design. Features bilingual reading time, custom author profiles, and WordPress Customizer integration.
Version: 1.0.0
License: GPL v2 or later
Text Domain: blogverse
Domain Path: /languages
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, bangla



/* ========== CSS RESET & ROOT VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-dark: #212529;
    --text-light: #6c757d;
    --text-lighter: #adb5bd;
    --text-muted: #999;
    --accent: #0d6efd;
    --accent-dark: #0b5ed7;
    --accent-light: #e8f0fe;
    --accent-hover: #0a58ca;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #333;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease;
    --header-height: 70px;
    --sidebar-width: 300px;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-code: 'Fira Code', 'Courier New', monospace;
}

/* ========== BASE STYLES ========== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========== HEADER (COMMON) ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
}

/* ========== HAMBURGER MENU (COMMON) ========== */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
    background: none;
    border: none;
    width: 35px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== OVERLAY & SIDEBAR (COMMON) ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 1001;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid var(--border);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: #f0f2f5;
    border-left-color: var(--accent);
    color: var(--accent);
    padding-left: 20px;
}

/* ========== BREADCRUMB (SINGLE + AUTHOR) ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-lighter);
}

/* ========== SECTION HEADINGS (INDEX + OTHERS) ========== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.8rem;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--text);
}

.section-heading h2 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.section-heading .line {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.section-heading .post-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ========== PAGINATION (COMMON - INDEX + AUTHOR) ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.pagination .active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ========== FOOTER (COMMON) ========== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    margin-top: 4rem;
    padding: 4rem 2rem 1rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* ============================================
   INDEX.HTML SPECIFIC STYLES
   ============================================ */

/* --- Container Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

main {
    min-width: 0;
}

/* --- Featured Post --- */
.featured-post {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: #1a1a2e;
    box-shadow: var(--shadow);
}

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

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

.featured-content .category-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.featured-content .post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* --- Post Cards Grid (Index Latest Posts) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

/* --- Card Header (Title + Meta TOP) --- */
.card-header {
    padding: 1.3rem 1.3rem 0.8rem;
}

.card-header .category-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card-header .post-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Card Image (MIDDLE) --- */
.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.04);
}

/* --- Card Footer (Excerpt BOTTOM) --- */
.card-footer {
    padding: 1rem 1.3rem 1.3rem;
}

.card-footer .excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.card-footer .read-more:hover {
    color: var(--accent-dark);
    letter-spacing: 2px;
}

/* --- Post Card (Common for Index) --- */
.post-card {
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

/* --- Sidebar Area (Index) --- */
.sidebar-area {
    min-width: 0;
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
    background: var(--surface);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--text);
    font-family: var(--font-heading);
}

/* --- Search Box --- */
.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-right: none;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--text);
}

.search-box button {
    padding: 12px 18px;
    background: var(--text);
    color: white;
    border: 2px solid var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* --- Category List --- */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.category-list li {
    border-bottom: 1px solid var(--border);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.category-list .count {
    background: #e9ecef;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Popular Mini Posts (Sidebar) --- */
.popular-mini {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.popular-mini:hover {
    padding-left: 5px;
}

.popular-mini img {
    width: 75px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
}

.popular-mini .info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.popular-mini .info .date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   SINGLE.HTML SPECIFIC STYLES
   ============================================ */

/* --- Single Container --- */
.single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Post Header --- */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--text);
}

.post-header .category-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.post-header .post-meta .author-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.post-header .post-meta .meta-text {
    display: flex;
    flex-direction: column;
}

.post-header .post-meta .author-name {
    font-weight: 700;
    color: var(--text);
}

/* --- Featured Image --- */
.post-featured-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: #e9ecef;
    box-shadow: var(--shadow-lg);
}

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

/* ============================================
   POST CONTENT TYPOGRAPHY (SINGLE.HTML)
   ============================================ */

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2c3e50;
}

/* --- H1 - Main Section Title (Rare in content) --- */
.post-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 4px solid var(--accent);
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
}

.post-content h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--text);
}

/* --- H2 - Section Title --- */
.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 2.2rem 0 1.2rem;
    padding-left: 20px;
    border-left: 5px solid var(--accent);
    line-height: 1.3;
    position: relative;
}

.post-content h2::before {
    content: '#';
    position: absolute;
    left: -40px;
    top: 0;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0.5;
}

/* --- H3 - Sub-section --- */
.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 1.8rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dotted var(--border);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-content h3::before {
    content: '\25B8';
    color: var(--accent);
    font-size: 1.2rem;
}

/* --- H4 - Important Notes / Highlight --- */
.post-content h4 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    margin: 1.5rem 0 0.8rem;
    background: var(--accent-light);
    padding: 12px 18px;
    border-left: 4px solid var(--accent);
    display: inline-block;
}

/* --- H5 - Warning / Alert --- */
.post-content h5 {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 600;
    color: #e74c3c;
    margin: 1.2rem 0 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #fff5f5;
    padding: 8px 14px;
    display: inline-block;
    border: 1px solid #fecaca;
}

/* --- H6 - Technical Labels --- */
.post-content h6 {
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 1rem 0 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- Paragraph --- */
.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* --- Lead Paragraph --- */
.post-content p.lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 5px solid var(--accent);
    font-style: italic;
}

/* --- Unordered List --- */
.post-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: none;
}

.post-content ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.post-content ul li::before {
    content: '\25B9';
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* --- Ordered List --- */
.post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    counter-reset: custom-counter;
    list-style: none;
}

.post-content ol li {
    counter-increment: custom-counter;
    padding: 8px 0;
    position: relative;
    padding-left: 35px;
}

.post-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Inline Code --- */
.post-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #e74c3c;
    border: 1px solid #e0e0e0;
}

/* --- Code Block --- */
.post-content pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 4px solid var(--accent);
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
}

/* --- Blockquote --- */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 5px solid var(--accent);
    font-style: italic;
    color: #555;
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: var(--font-heading);
    line-height: 1;
}

.post-content blockquote p {
    margin: 0;
}

/* --- Images in Content --- */
.post-content img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

/* --- Horizontal Rule --- */
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin: 3rem 0;
}

/* --- Highlight Box --- */
.post-content .highlight-box {
    background: linear-gradient(135deg, #e8f0fe, #f0f7ff);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid var(--accent);
}

.post-content .highlight-box h4 {
    margin-top: 0;
    background: none;
    padding: 0;
    border: none;
}

/* ============================================
   SINGLE POST FOOTER ELEMENTS
   ============================================ */

/* --- Tags --- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

.post-tags span {
    font-weight: 700;
    color: var(--text);
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f2f5;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* --- Share Section --- */
.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.share-section span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

/* --- Author Bio --- */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    margin: 2.5rem 0;
    align-items: flex-start;
}

.author-bio .author-avatar-lg {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-bio .author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    background: none;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.author-bio .author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Comments Section --- */
.comments-section {
    margin: 3rem 0;
}

.comments-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Comment Item --- */
.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--text);
}

.comment-body h4 {
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    display: block;
}

.comment-body .comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.comment-body p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-body .reply-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Comment Form --- */
.comment-form {
    margin: 2.5rem 0;
}

.comment-form h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text);
}

.form-group textarea {
    height: 150px;
}

.submit-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--text);
    color: white;
    border: 2px solid var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.submit-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* --- Related Posts --- */
.related-section {
    margin: 3rem 0;
}

.related-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card .related-info {
    padding: 1rem;
}

.related-card .related-info h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    background: none;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.related-card .related-info .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   AUTHOR.HTML SPECIFIC STYLES
   ============================================ */

/* --- Author Container --- */
.author-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Author Hero --- */
.author-hero {
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent), #6c5ce7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
}

.author-avatar .verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 3px solid white;
}

.author-hero-content {
    flex: 1;
}

.author-hero-content .author-role {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.author-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.author-hero-content .author-bio {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.author-hero-content .author-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

/* --- Social Buttons --- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.social-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.social-btn.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.social-btn.website:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.social-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

/* --- Author Stats --- */
.author-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

.stat-card:nth-child(2) {
    border-top-color: #6c5ce7;
}

.stat-card:nth-child(3) {
    border-top-color: #28a745;
}

.stat-card:nth-child(4) {
    border-top-color: #e74c3c;
}

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

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* --- Author Layout (Posts + Sidebar) --- */
.author-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.author-posts-area {
    min-width: 0;
}

.author-sidebar {
    min-width: 0;
}

/* --- Author Post Cards (List Style) --- */
.author-posts-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.author-post-card {
    display: flex;
    gap: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.author-post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.author-post-card .post-image {
    width: 250px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9ecef;
}

.author-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-post-card:hover .post-image img {
    transform: scale(1.05);
}

.author-post-card .post-details {
    padding: 1.5rem 1.5rem 1.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-post-card .post-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    align-self: flex-start;
}

.author-post-card .post-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.author-post-card .post-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.author-post-card .post-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Expertise Tags --- */
.expertise-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-list li {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f5;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.expertise-list li:hover {
    background: var(--text);
    color: white;
}

/* --- Mini Posts (Author Sidebar) --- */
.mini-post {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.mini-post:hover {
    padding-left: 5px;
}

.mini-post img {
    width: 60px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
}

.mini-post .info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.mini-post .info .date {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* --- Large Tablets & Small Desktops (992px) --- */
@media (max-width: 992px) {
    /* Index */
    .container {
        grid-template-columns: 1fr;
    }

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

    /* Single */
    .single-container {
        padding: 1.5rem;
    }

    .post-content h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    .post-content h2::before {
        left: -30px;
        font-size: 1.2rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    /* Author */
    .author-layout {
        grid-template-columns: 1fr;
    }

    .author-hero {
        padding: 2rem;
        gap: 1.5rem;
    }

    .author-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .author-hero-content h1 {
        font-size: 2rem;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tablets (768px) --- */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 0 1rem;
    }

    /* Sidebar */
    .sidebar {
        width: 300px;
        right: -300px;
    }

    /* Index */
    .container {
        padding: 1rem;
    }

    .featured-post {
        height: 350px;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-content h2 {
        font-size: 1.4rem;
    }

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

    /* Single */
    .single-container {
        padding: 1rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-featured-image {
        height: 300px;
    }

    .post-content {
        font-size: 1.05rem;
    }

    .post-content h1 {
        font-size: 1.6rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
        padding-left: 12px;
        border-left-width: 4px;
    }

    .post-content h2::before {
        display: none;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .post-content h4 {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .post-content h5 {
        font-size: 0.9rem;
    }

    .post-content h6 {
        font-size: 0.8rem;
    }

    .post-content p.lead {
        font-size: 1.1rem;
        padding: 1rem;
    }

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

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

    /* Author */
    .author-container {
        padding: 1rem;
    }

    .author-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-avatar {
        margin: 0 auto 1rem;
    }

    .author-hero-content .author-location {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

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

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

    .author-post-card .post-image {
        width: 100%;
        height: 200px;
    }

    .author-post-card .post-details {
        padding: 1.3rem;
    }

    .author-post-card:hover {
        transform: translateY(-3px);
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Mobile (480px) --- */
@media (max-width: 480px) {
    /* Index */
    .featured-post {
        height: 280px;
    }

    .featured-content h2 {
        font-size: 1.2rem;
    }

    .sidebar {
        width: 280px;
        right: -280px;
    }

    /* Single */
    .post-header h1 {
        font-size: 1.6rem;
    }

    .post-featured-image {
        height: 220px;
    }

    .post-content h1 {
        font-size: 1.4rem;
    }

    .post-content h2 {
        font-size: 1.2rem;
    }

    .share-section {
        justify-content: center;
    }

    /* Author */
    .author-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .author-hero-content h1 {
        font-size: 1.6rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        justify-content: center;
    }

    .author-post-card .post-image {
        height: 180px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* --- No Border Radius (Enforced everywhere) --- */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* --- Smooth Scroll --- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* --- Print Styles --- */
@media print {
    .header,
    .sidebar,
    .overlay,
    .hamburger,
    .site-footer,
    .share-section,
    .comment-form,
    .pagination {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .single-container,
    .author-container,
    .container {
        max-width: 100%;
        padding: 0;
    }
}
/* ============================================
   CLEAN ADSENSE-COMPLIANT SIDEBAR STYLES
   Minimal, Clean, Policy-Friendly
   ============================================ */

/* --- Sidebar Container --- */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    padding: calc(var(--header-height) + 1.5rem) 0 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.06);
}

.sidebar.active {
    right: 0;
}

/* --- Navigation Container --- */
.sidebar-nav-wrapper {
    padding: 0;
}

/* --- Navigation List --- */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
    padding: 0;
}

/* --- Navigation Links --- */
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    background-color: #f3f4f6;
    border-left-color: #3b82f6;
    color: #1f2937;
}

.sidebar-nav a:active {
    background-color: #e5e7eb;
}

/* --- Navigation Icons --- */
.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

/* --- Submenu Parent --- */
.sidebar-nav .has-submenu > a {
    cursor: pointer;
    justify-content: flex-start;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.sidebar-nav .has-submenu.open > a .submenu-arrow {
    transform: rotate(180deg);
}

/* --- Submenu --- */
.sidebar-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.sidebar-nav .has-submenu.open > .sub-menu {
    max-height: 600px;
}

.sidebar-nav .sub-menu a {
    padding: 11px 20px 11px 48px;
    font-size: 0.88rem;
    color: #6b7280;
    border-left-color: transparent;
}

.sidebar-nav .sub-menu a:hover {
    background-color: #f3f4f6;
    color: #374151;
    border-left-color: #3b82f6;
}

/* --- Category Count Badge --- */
.cat-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    background-color: #f3f4f6;
    padding: 2px 7px;
    font-weight: 500;
}

/* --- View All Link --- */
.view-all {
    border-top: 1px solid #e5e7eb;
    margin-top: 3px;
}

.view-all a {
    font-weight: 500;
    color: #3b82f6;
}

.view-all a:hover {
    background-color: #eff6ff;
}

/* --- Active State --- */
.sidebar-nav li.current-menu-item > a,
.sidebar-nav li.current_page_item > a {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 500;
}

/* --- Focus States for Accessibility --- */
.sidebar-nav a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    background-color: #f3f4f6;
}

/* --- Scrollbar Styling --- */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 0;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* --- Remove any decorative elements --- */
.sidebar::before,
.sidebar::after {
    display: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        right: -280px;
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .sidebar-nav a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .sidebar-nav .sub-menu a {
        padding-left: 44px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-nav a,
    .sub-menu {
        transition: none;
    }
}
/* ========== FOOTER LOGO STYLES ========== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}