/*
Theme Name: NexiroTech Modern Blog
Theme URI: https://nexirotech.com
Author: NexiroTech
Author URI: https://nexirotech.com
Description: A modern, ultra-responsive blog theme with red and black color scheme. Premium design with smooth animations and mobile-first approach.
Version: 2.0.0
License: GPL v2 or later
Text Domain: nexirotech-modern
Tags: blog, two-columns, right-sidebar, custom-header, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #8B1A1A;
    --primary-dark: #5C1010;
    --primary-light: #A52A2A;
    --primary-gradient: linear-gradient(135deg, #8B1A1A 0%, #5C1010 100%);
    --primary-glow: rgba(139, 26, 26, 0.25);
    
    --dark: #0A0A0A;
    --dark-gray: #141414;
    --medium-gray: #2A2A2A;
    
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --text-muted: #999999;
    --text-white: #F5F5F5;
    
    --white: #FFFFFF;
    --light-bg: #F8F8F8;
    --border: #E8E8E8;
    --border-light: #F0F0F0;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 60px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 30px rgba(139,26,26,0.08);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--light-bg);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 20px 0 0;
    width: 100%;
    overflow: visible;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 26, 26, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 72px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(139, 26, 26, 0.3);
    min-height: 62px;
}

.header-inner {
    width: 100%;
    padding: 0;
    margin: 0;
}

.header-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    transition: min-height 0.4s ease;
    width: 100%;
    overflow: visible;
}

.site-header.scrolled .header-container {
    min-height: 62px;
}

/* Brand / Logo */
.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: visible;
}

.brand-logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: visible;
}

.brand-logo img {
    display: block;
    max-height: 45px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.site-header.scrolled .brand-logo img {
    max-height: 38px;
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.site-header.scrolled .brand-text {
    font-size: 22px;
}

.brand-text .brand-dot {
    color: var(--primary);
    font-size: 32px;
    margin-left: 2px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-list li {
    position: relative;
    flex-shrink: 0;
}

.nav-list a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-list a .nav-link-text {
    position: relative;
}

.nav-list a .nav-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover .nav-link-text::after,
.nav-list .current-menu-item a .nav-link-text::after,
.nav-list .current_page_item a .nav-link-text::after {
    width: 100%;
}

.nav-list a:hover {
    color: #fff;
    background: rgba(139, 26, 26, 0.12);
}

.nav-list .current-menu-item a,
.nav-list .current_page_item a {
    color: #fff;
    background: rgba(139, 26, 26, 0.15);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    flex-shrink: 0;
}

.action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.action-btn .action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.action-btn .action-label {
    display: none;
}

.action-btn .search-shortcut {
    display: none;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
body.dark-mode .theme-toggle .sun { display: none; }
body.dark-mode .theme-toggle .moon { display: block; }

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.menu-toggle-icon .bar {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.menu-toggle.active .menu-toggle-icon .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .menu-toggle-icon .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== MOBILE MENU ========== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 380px;
    height: 100%;
    background: #0A0A0A;
    z-index: 1200;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 24px;
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.mobile-brand img {
    max-height: 36px;
    width: auto;
}

.mobile-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mobile-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    margin-bottom: 4px;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-list > li > a:hover {
    background: rgba(139, 26, 26, 0.15);
    color: #fff;
}

.mobile-nav-list .menu-item-has-children {
    position: relative;
}

.mobile-sub-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sub-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-sub-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.mobile-nav-list .menu-item-has-children.active .mobile-sub-toggle svg {
    transform: rotate(180deg);
}

.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    display: none;
}

.mobile-nav-list .menu-item-has-children.active .sub-menu {
    display: block;
}

.mobile-nav-list .sub-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-list .sub-menu a:hover {
    color: #fff;
    background: rgba(139, 26, 26, 0.1);
}

.mobile-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.mobile-search button {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search button:hover {
    background: var(--primary-dark);
}

.mobile-search button svg {
    width: 20px;
    height: 20px;
}

.mobile-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mobile-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 90%;
    max-width: 620px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0) scale(1);
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.search-close svg {
    width: 28px;
    height: 28px;
}

.search-container {
    text-align: center;
}

.search-icon-large svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    margin-bottom: 16px;
}

.search-container h2 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
}

.search-container .search-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.search-container .search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
}

.search-container .search-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #fff;
    outline: none;
}

.search-container .search-form input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.search-container .search-form button {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-container .search-form button:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    margin-top: 20px;
}

.search-suggestions span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin-right: 8px;
}

.search-suggestions a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    margin: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 60px 0 50px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,26,26,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: 20px 0;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 18px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-content p {
    color: rgba(255,255,255,0.5);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

.hero-stats .stat .label {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto;
}

.hero-search .search-form {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition-normal);
}

.hero-search .search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.hero-search .search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--white);
    outline: none;
}

.hero-search .search-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.hero-search .search-form button {
    background: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-normal);
    font-size: 13px;
}

.hero-search .search-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== LATEST SECTION ========== */
.latest-section {
    width: 100%;
    overflow: visible;
    margin-bottom: 50px;
}

.latest-section .posts-grid {
    width: 100%;
    overflow: visible;
}

/* ========== SECTION HEADER ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    width: 100%;
    overflow: visible;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin: 0;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.section-title .icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    flex-shrink: 0;
}

.section-title .icon i {
    font-size: 14px;
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-normal);
    flex-shrink: 0;
    white-space: nowrap;
}

.view-all:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ========== POSTS GRID ========== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 0;
    width: 100%;
    overflow: visible;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* ========== POST CARD ========== */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
    position: relative;
    width: 100%;
    min-width: 0;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--primary);
}

.post-card .post-img {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    width: 100%;
}

.post-card .post-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.post-card:hover .post-img img {
    transform: scale(1.04);
}

.post-card .post-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.post-card .post-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.post-card .post-content {
    padding: 22px 24px 24px;
    width: 100%;
    overflow: visible;
}

.post-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    width: 100%;
}

.post-card .post-meta i {
    margin-right: 4px;
    font-size: 11px;
}

.post-card .post-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--font-heading);
    overflow: visible;
    word-wrap: break-word;
}

.post-card .post-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition-normal);
}

.post-card .post-title a:hover {
    color: var(--primary);
}

.post-card .post-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.post-card .post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.post-card .post-readmore:hover {
    gap: 14px;
}

/* ========== FEATURED POST ========== */
.featured-post {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr;
    border-left: 4px solid var(--primary);
    transition: var(--transition-normal);
}

.featured-post:hover {
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .featured-post {
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-post .featured-img {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.featured-post .featured-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-post:hover .featured-img img {
    transform: scale(1.03);
}

.featured-post .featured-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.featured-post .featured-content {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post .featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.featured-post .featured-meta i {
    margin-right: 4px;
}

.featured-post .featured-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.featured-post .featured-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition-normal);
}

.featured-post .featured-title a:hover {
    color: var(--primary);
}

.featured-post .featured-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ========== CATEGORY SECTIONS ========== */
.category-section {
    margin-bottom: 50px;
}

.category-section .posts-grid {
    margin-bottom: 0;
}

/* ========== LOAD MORE ========== */
.load-more {
    text-align: center;
    margin: 40px 0 60px;
    width: 100%;
    overflow: visible;
}

.load-more-btn {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 14px 42px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn i {
    transition: var(--transition-normal);
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== SINGLE POST ========== */
.single-post {
    padding: 30px 0 50px;
}

.post-header {
    margin-bottom: 30px;
}

.post-categories {
    margin-bottom: 14px;
}

.post-categories a {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.post-categories a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.post-title-single {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta-single {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.post-meta-single i {
    margin-right: 5px;
}

.post-featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 24px 0 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content-single {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

.post-content-single h2 {
    font-family: var(--font-heading);
    margin: 36px 0 16px;
    font-size: 1.8rem;
}

.post-content-single h3 {
    font-family: var(--font-heading);
    margin: 28px 0 14px;
    font-size: 1.4rem;
}

.post-content-single p {
    margin-bottom: 18px;
}

.post-content-single ul,
.post-content-single ol {
    margin: 18px 0 18px 28px;
}

.post-content-single li {
    margin-bottom: 6px;
}

.post-content-single blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--light-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

.post-content-single img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.post-tags {
    margin: 32px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags .tag-label {
    font-weight: 600;
    color: var(--text);
    margin-right: 6px;
}

.post-tags a {
    display: inline-block;
    background: var(--light-bg);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

.post-tags a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 32px 0;
}

.post-navigation a {
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.post-navigation a:hover {
    color: var(--primary);
}

.author-box {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin: 32px 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border-left: 3px solid var(--primary);
}

.author-box .author-avatar {
    flex-shrink: 0;
}

.author-box .author-avatar img {
    border-radius: 50%;
}

.author-box .author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.author-box .author-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.author-box .author-info a {
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
}

.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-bottom: 2px solid transparent;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.related-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-item .related-info {
    padding: 16px 18px;
}

.related-item .related-info h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.related-item .related-info h4 a {
    color: var(--text);
    text-decoration: none;
}

.related-item .related-info h4 a:hover {
    color: var(--primary);
}

.related-item .related-info span {
    font-size: 11px;
    color: var(--text-light);
}

/* ========== COMMENTS ========== */
.comments-section {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
}

.comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.comment-list .comment .comment-author .avatar {
    border-radius: 50%;
}

.comment-list .comment .comment-author .fn {
    font-weight: 600;
    color: var(--text);
}

.comment-list .comment .comment-metadata {
    font-size: 12px;
    color: var(--text-light);
}

.comment-list .comment .comment-content {
    font-size: 14px;
    line-height: 1.7;
}

.comment-list .comment .reply {
    margin-top: 12px;
}

.comment-list .comment .reply a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.comment-list .comment .reply a:hover {
    color: var(--primary-dark);
}

.comment-respond {
    margin-top: 32px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}

.comment-respond .comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--text);
    font-family: var(--font-heading);
}

.comment-respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-respond .comment-form input,
.comment-respond .comment-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 100%;
    background: var(--light-bg);
    color: var(--text);
    transition: var(--transition-normal);
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.comment-respond .comment-form textarea {
    min-height: 150px;
}

.comment-respond .comment-form .submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: auto;
    align-self: flex-start;
}

.comment-respond .comment-form .submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ========== ARCHIVE ========== */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.archive-title i {
    color: var(--primary);
    margin-right: 10px;
}

.archive-description {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 4px;
}

.archive-count {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== SEARCH RESULTS ========== */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.search-result:hover {
    box-shadow: var(--shadow-md);
}

.search-result-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.search-result-info h3 a {
    color: var(--text);
    text-decoration: none;
}

.search-result-info h3 a:hover {
    color: var(--primary);
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.search-result-meta span {
    margin-right: 16px;
}

.search-result-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== 404 PAGE ========== */
.error-404 {
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404 h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.error-404 p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
}

.error-home-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* ========== NO RESULTS ========== */
.no-posts,
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.no-posts i,
.no-results i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.no-posts h3,
.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-posts p,
.no-results p {
    color: var(--text-light);
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 30px 0 50px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.page-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

.page-featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.page-featured-image img {
    width: 100%;
    height: auto;
}

.page-body {
    font-size: 16px;
    line-height: 1.9;
}

.page-body h2 {
    font-family: var(--font-heading);
    margin: 36px 0 16px;
    font-size: 1.8rem;
}

.page-body h3 {
    font-family: var(--font-heading);
    margin: 28px 0 14px;
    font-size: 1.4rem;
}

.page-body p {
    margin-bottom: 18px;
}

.page-body ul,
.page-body ol {
    margin: 18px 0 18px 28px;
}

.page-body li {
    margin-bottom: 6px;
}

/* ========== PAGINATION ========== */
.pagination-wrapper {
    margin: 40px 0 60px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.pagination .page-numbers:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
}

.pagination .page-numbers.dots {
    background: none;
    box-shadow: none;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 60px 0 24px;
    border-top: 2px solid var(--primary);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.footer-bottom a {
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .action-btn .action-label {
        display: none;
    }
    
    .action-btn .search-shortcut {
        display: none;
    }
    
    .site-header {
        min-height: 64px;
    }
    
    .site-header.scrolled {
        min-height: 56px;
    }
    
    .header-container {
        min-height: 64px;
    }
    
    .site-header.scrolled .header-container {
        min-height: 56px;
    }
    
    .brand-logo img {
        max-height: 38px;
    }
    
    .site-header.scrolled .brand-logo img {
        max-height: 32px;
    }
    
    .brand-text {
        font-size: 22px;
    }
    
    .site-header.scrolled .brand-text {
        font-size: 18px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 58px;
    }
    
    .site-header.scrolled {
        min-height: 52px;
    }
    
    .header-container {
        min-height: 58px;
        padding: 0 16px;
    }
    
    .site-header.scrolled .header-container {
        min-height: 52px;
    }
    
    .brand-logo img {
        max-height: 34px;
    }
    
    .site-header.scrolled .brand-logo img {
        max-height: 28px;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .site-header.scrolled .brand-text {
        font-size: 17px;
    }
    
    .header-actions {
        gap: 2px;
    }
    
    .action-btn {
        padding: 6px 10px;
    }
    
    .action-btn .action-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-section {
        padding: 40px 0 35px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stats .stat .number {
        font-size: 1.3rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
        border-left-width: 3px;
    }
    
    .featured-post .featured-img img {
        min-height: 220px;
    }
    
    .featured-post .featured-content {
        padding: 24px 20px;
    }
    
    .featured-post .featured-title {
        font-size: 1.2rem;
    }
    
    .post-title-single {
        font-size: 1.8rem;
    }
    
    .post-meta-single {
        gap: 12px;
        font-size: 12px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .search-result {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .search-result-img {
        width: 120px;
        height: 120px;
    }
    
    .error-404-title {
        font-size: 48px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        min-height: 52px;
    }
    
    .site-header.scrolled {
        min-height: 48px;
    }
    
    .header-container {
        min-height: 52px;
        padding: 0 12px;
        gap: 10px;
    }
    
    .site-header.scrolled .header-container {
        min-height: 48px;
    }
    
    .brand-logo img {
        max-height: 28px;
    }
    
    .site-header.scrolled .brand-logo img {
        max-height: 24px;
    }
    
    .brand-text {
        font-size: 17px;
    }
    
    .site-header.scrolled .brand-text {
        font-size: 14px;
    }
    
    .brand-text .brand-dot {
        font-size: 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-search .search-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
    }
    
    .hero-search .search-form input {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: var(--radius-full);
        padding: 12px 18px;
    }
    
    .hero-search .search-form button {
        padding: 12px;
        width: 100%;
    }
    
    .post-card .post-content {
        padding: 16px 18px 18px;
    }
    
    .post-card .post-title {
        font-size: 1rem;
    }
    
    .post-card .post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-title .icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .view-all {
        font-size: 11px;
    }
    
    .post-title-single {
        font-size: 1.5rem;
    }
    
    .post-content-single {
        font-size: 15px;
    }
    
    .post-content-single h2 {
        font-size: 1.4rem;
    }
    
    .post-content-single h3 {
        font-size: 1.2rem;
    }
    
    .post-content-single blockquote {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .author-box {
        padding: 20px;
    }
    
    .search-result {
        padding: 16px;
    }
    
    .search-result-img {
        width: 80px;
        height: 80px;
    }
    
    .error-404 {
        padding: 40px 16px 60px;
    }
    
    .error-404-title {
        font-size: 36px;
    }
    
    .search-overlay-inner h3 {
        font-size: 18px;
    }
    
    .search-container .search-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
    }
    
    .search-container .search-form input {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: var(--radius-full);
    }
    
    .search-container .search-form button {
        padding: 12px;
        width: 100%;
    }
}

/* ========== DARK MODE ========== */
body.dark-mode {
    --light-bg: #111111;
    --white: #1A1A1A;
    --text: #E8E8E8;
    --text-light: #B0B0B0;
    --border: #2A2A2A;
    --border-light: #222222;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

body.dark-mode .post-card,
body.dark-mode .featured-post,
body.dark-mode .related-item,
body.dark-mode .comment-list .comment,
body.dark-mode .comment-respond,
body.dark-mode .search-result,
body.dark-mode .no-posts,
body.dark-mode .no-results {
    background: #1A1A1A;
}

body.dark-mode .post-card .post-title a,
body.dark-mode .featured-post .featured-title a,
body.dark-mode .related-item .related-info h4 a,
body.dark-mode .search-result-info h3 a {
    color: #E8E8E8;
}

body.dark-mode .post-card .post-title a:hover,
body.dark-mode .featured-post .featured-title a:hover,
body.dark-mode .search-result-info h3 a:hover {
    color: var(--primary);
}

body.dark-mode .load-more-btn {
    background: #1A1A1A;
    color: #E8E8E8;
    border-color: #2A2A2A;
}

body.dark-mode .load-more-btn:hover {
    background: var(--primary);
    color: var(--white);
}

body.dark-mode .author-box {
    background: #1A1A1A;
}

body.dark-mode .comment-respond .comment-form input,
body.dark-mode .comment-respond .comment-form textarea {
    background: #111111;
    border-color: #2A2A2A;
    color: #E8E8E8;
}

body.dark-mode .site-header {
    background: rgba(10, 10, 10, 0.95);
}

body.dark-mode .mobile-menu {
    background: #0A0A0A;
}

body.dark-mode .section-header {
    border-bottom-color: #2A2A2A;
}

body.dark-mode .pagination .page-numbers {
    background: #1A1A1A;
    color: #E8E8E8;
}

body.dark-mode .pagination .page-numbers:hover {
    background: #2A2A2A;
}

body.dark-mode .pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ================================================================
   ========== HOMEPAGE FIX - SINGLE CLEAN SOLUTION ==========
   ================================================================ */

/* Fix the main issue - site-main padding cutting off content */
.home .site-main {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* Ensure all homepage content is visible */
.home .homepage-content,
.home .content-area-full,
.home .latest-section,
.home .category-section {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    clear: both !important;
}

/* Fix posts grid */
.home .posts-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

@media (min-width: 640px) {
    .home .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px !important;
    }
}

/* Fix load more */
.home .load-more {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 40px 0 60px !important;
    overflow: visible !important;
}

/* Fix hero section on homepage */
.home .hero-section {
    display: block !important;
    padding: 60px 0 50px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Fix featured post on homepage */
.home .featured-post {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-bottom: 50px !important;
}

@media (min-width: 768px) {
    .home .featured-post {
        grid-template-columns: 1.2fr 1fr !important;
    }
}

/* Fix section headers on homepage */
.home .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    overflow: visible !important;
    margin-bottom: 28px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #E8E8E8 !important;
}

/* Fix container on homepage */
.home ..container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Dark mode fixes for homepage */
body.dark-mode .home .post-card {
    background: #1A1A1A !important;
}

body.dark-mode .home .post-card .post-title a {
    color: #E8E8E8 !important;
}

body.dark-mode .home .post-card .post-title a:hover {
    color: #8B1A1A !important;
}

body.dark-mode .home .load-more-btn {
    background: #1A1A1A !important;
    color: #E8E8E8 !important;
    border-color: #2A2A2A !important;
}

body.dark-mode .home .load-more-btn:hover {
    background: #8B1A1A !important;
    color: #FFFFFF !important;
}

body.dark-mode .home .section-header {
    border-bottom-color: #2A2A2A !important;
}

body.dark-mode .home .post-card .post-meta,
body.dark-mode .home .post-card .post-excerpt {
    color: #B0B0B0 !important;
}
/* ================================================================
   FIX: WIDER CONTAINER FOR HOMEPAGE
   ================================================================ */

/* Make homepage container wider */
.home .container,
.homepage-container {
    max-width: 1200px !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Make hero slider full width */
.home .hero-section .container {
    max-width: 1200px !important;
}

/* Make featured grid full width */
.home .featured-grid {
    max-width: 100% !important;
}

/* Make posts grid full width */
.home .posts-grid {
    max-width: 100% !important;
}

/* Make latest section full width */
.home .latest-section {
    max-width: 100% !important;
}

/* Make latest sidebar full width */
.home .latest-sidebar {
    max-width: 100% !important;
}

/* Make sidebar full width on desktop */
@media (min-width: 992px) {
    .home .sidebar {
        max-width: 100% !important;
    }
}