/*
Theme Name: OtoSinyal
Theme URI: https://otosinyal.com.tr
Author: OtoSinyal
Author URI: https://otosinyal.com.tr
Description: SEO odaklı, ultra hızlı, mobil uyumlu otomobil bilgi blogu teması. Trafik cezaları, hız sınırları, araç muayenesi, ehliyet işlemleri ve sigorta konularında otoriter içerik yayını için tasarlanmıştır.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otosinyal
Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo

OtoSinyal - Türkiye'nin Otomobil Bilgi Platformu
*/

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

:root {
    /* Primary Colors */
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --primary-rgb: 26, 115, 232;

    /* Accent */
    --accent: #d93025;
    --accent-dark: #b3261e;
    --accent-light: #fce8e6;

    /* Neutrals */
    --white: #ffffff;
    --bg: #f8f9fa;
    --bg-alt: #f1f3f4;
    --border: #dadce0;
    --border-light: #e8eaed;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --text-link: #1a73e8;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sizing */
    --container-max: 1200px;
    --sidebar-width: 320px;
    --header-height: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10000;
    transition: width 0.1s linear;
    width: 0%;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    min-height: 60vh;
}

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

.no-sidebar .content-area { 
    max-width: 800px; 
    margin: 0 auto; 
}

.widget-area {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

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

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    height: 36px;
    width: auto;
}

.site-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

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

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

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

.site-description {
    display: none;
}

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

.primary-navigation .menu {
    display: flex;
    align-items: center;
    gap: 1px;
}

.primary-navigation .menu li {
    position: relative;
}

.primary-navigation .menu > li > a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.primary-navigation .menu > li > a:hover,
.primary-navigation .menu > li.current-menu-item > a,
.primary-navigation .menu > li.current-menu-ancestor > a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown arrow for parent items */
.primary-navigation .menu > li.menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    opacity: 0.6;
    transition: transform var(--transition);
}

.primary-navigation .menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Submenu */
.primary-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}

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

.primary-navigation .sub-menu a {
    display: block;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.primary-navigation .sub-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Header Search */
.header-search {
    position: relative;
}

.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.header-search-toggle:hover {
    background: var(--bg);
    color: var(--primary);
}

.header-search-toggle svg {
    width: 20px;
    height: 20px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

.search-overlay-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 640px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    transition: transform var(--transition-slow);
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-overlay .search-form {
    display: flex;
    gap: 12px;
}

.search-overlay .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-overlay .search-field:focus {
    border-color: var(--primary);
}

.search-overlay .search-submit {
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.search-overlay .search-submit:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    transition: background var(--transition);
}

.search-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #1a73e8 100%);
    color: var(--white);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto;
}

.hero-search .search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search .search-field {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.hero-search .search-submit {
    padding: 16px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.hero-search .search-submit:hover {
    background: var(--primary-dark);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    gap: 8px;
}

.home-section {
    margin-bottom: 48px;
}

/* =============================================
   CATEGORY BLOCKS
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px;
}

.category-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    color: var(--text-primary);
}

.category-block:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    color: var(--primary);
}

.category-block-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    line-height: 1;
}

.category-block-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.category-block-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .category-block {
        padding: 12px 6px;
    }
    .category-block-icon {
        font-size: 1.2rem;
    }
    .category-block-title {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =============================================
   POST CARDS
   ============================================= */
.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    transform: translateY(-2px);
}

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

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

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

.post-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 1;
}

.post-card-category a {
    color: inherit;
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-card-meta svg {
    width: 14px;
    height: 14px;
}

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

/* Featured Posts Grid */
.featured-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.featured-posts-main,
.featured-posts-aside {
    min-width: 0;
}

.featured-posts-main .post-card {
    height: 100%;
}

.featured-posts-main .post-card-title {
    font-size: 1.3rem;
}

.featured-posts-main .post-card-thumbnail {
    aspect-ratio: auto;
    height: 464px;
}

.featured-posts-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.featured-posts-aside .post-card-small {
    padding: 0 0 18px;
}

.featured-posts-aside .post-card-small:last-child {
    padding-bottom: 0;
}

.featured-posts-aside .post-card-small-thumb {
    width: 120px;
    height: 88px;
}

.featured-posts-aside .post-card-small-title {
    font-size: 0.98rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Posts List */
.posts-list .post-card {
    display: flex;
    margin-bottom: 20px;
}

.posts-list .post-card-thumbnail {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: 16/11;
}

.posts-list .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.posts-list .post-card-title {
    font-size: 1.15rem;
    -webkit-line-clamp: 2;
}

.posts-list-expandable {
    display: flex;
    flex-direction: column;
}

.expandable-post:last-child .post-card {
    margin-bottom: 0;
}

.post-card-hidden {
    display: none;
}

.home-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.home-load-more-btn {
    min-width: 220px;
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.home-load-more-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.home-load-more-btn.is-hidden {
    display: none;
}

/* Small Post Card */
.post-card-small {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.post-card-small:last-child {
    border-bottom: none;
}

.post-card-small-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

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

.post-card-small-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.post-card-small-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Numbered List */
.numbered-post {
    counter-increment: post-counter;
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

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

.numbered-post::before {
    content: counter(post-counter, decimal-leading-zero);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.numbered-post-content {
    flex: 1;
}

.numbered-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.numbered-post-title a {
    color: var(--text-primary);
}

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

.numbered-post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   CATEGORY BLOCKS
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-block {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.category-block:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.category-block-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition);
}

.category-block:hover .category-block-icon {
    background: var(--primary);
    color: var(--white);
}

.category-block-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-block-title a {
    color: var(--text-primary);
}

.category-block-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    gap: 14px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    font-size: 1.2rem;
    line-height: 1;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer-inner {
    padding: 0 20px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   NEWSLETTER / CTA
   ============================================= */
.newsletter-section {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.newsletter-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
    position: relative;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
    position: relative;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.8rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

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

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

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-header {
    margin-bottom: 32px;
}

.single-post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.single-post-category a {
    color: inherit;
}

.single-post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.single-post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.single-post-thumbnail {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Table of Contents */
.toc-container {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.toc-list li {
    counter-increment: toc-counter;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toc-list li a::before {
    content: counter(toc-counter) ".";
    font-weight: 600;
    color: var(--primary);
    min-width: 20px;
}

.toc-list li a:hover {
    color: var(--primary);
}

/* Post Content */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--text-primary);
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.entry-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 24px 0 10px;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 18px 24px;
}

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

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

.entry-content li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 18px 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    min-width: 640px;
    background: var(--white);
}

.entry-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 24px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    -webkit-overflow-scrolling: touch;
}

.entry-table-wrap table {
    margin: 0;
}

.entry-content table th,
.entry-content table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
    vertical-align: top;
}

.entry-content table th {
    background: var(--bg);
    font-weight: 600;
}

.entry-content table tr:nth-child(even) {
    background: var(--bg);
}

.entry-content table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .entry-content table {
        min-width: 560px;
        font-size: 0.9rem;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 10px 12px;
    }
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.entry-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(var(--primary-rgb), 0.3);
    text-underline-offset: 2px;
}

.entry-content a:hover {
    text-decoration-color: var(--primary);
}

/* Info Boxes */
.info-box,
.warning-box,
.note-box,
.tip-box {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    color: #1a56b0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
    color: #e65100;
}

.note-box {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #2e7d32;
}

.tip-box {
    background: #f3e5f5;
    border-left: 4px solid #8e24aa;
    color: #6a1b9a;
}

.info-box-icon,
.warning-box-icon,
.note-box-icon,
.tip-box-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

/* Ad Spaces */
.ad-space {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin: 24px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ad-space.ad-above-content { margin-bottom: 24px; }
.ad-space.ad-below-content { margin-top: 24px; }
.ad-space.ad-in-content { margin: 32px 0; }

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.social-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 6px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    transition: all var(--transition);
}

.social-share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    color: var(--white);
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.whatsapp { background: #25d366; }
.social-share-btn.linkedin { background: #0a66c2; }
.social-share-btn.telegram { background: #0088cc; }

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-nav-link {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.post-nav-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.post-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* Related Posts */
.related-posts {
    margin: 40px 0;
}

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

/* Author Box */
.author-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

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

.author-box-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

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

/* Reference / Sources */
.sources-box {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
}

.sources-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sources-list {
    list-style: decimal;
    margin-left: 20px;
}

.sources-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.sources-list li a {
    color: var(--primary);
    word-break: break-all;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-list {
    margin-bottom: 32px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.comment-content-wrap {
    flex: 1;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.comment-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-reply-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 6px;
    display: inline-block;
}

.children {
    margin-left: 48px;
}

.comment-respond {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
    margin-bottom: 16px;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    border-color: var(--primary);
}

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

.form-submit .submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit .submit:hover {
    background: var(--primary-dark);
}

/* =============================================
   ARCHIVE / BLOG
   ============================================= */
.archive-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
    margin-bottom: 0;
}

.archive-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.archive-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 640px;
}

.archive-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .dots {
    background: none;
    border: none;
}

/* =============================================
   SIDEBAR / WIDGETS
   ============================================= */
.widget {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

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

.widget ul li a {
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--primary);
}

.widget ul li .count {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tag Cloud Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-size: 0.8rem !important;
    color: var(--text-secondary);
    transition: all var(--transition);
}

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

/* Search Widget */
.widget .search-form {
    display: flex;
}

.widget .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    font-size: 0.9rem;
}

.widget .search-field:focus {
    border-color: var(--primary);
}

.widget .search-submit {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Social Widget */
.social-links-widget {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links-widget a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-links-widget a:hover {
    background: var(--primary);
    color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #1a1d23;
    color: #a0a4ab;
    margin-top: 48px;
}

.footer-main {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 14px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a4ab;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #a0a4ab;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #a0a4ab;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404-content {
    text-align: center;
    padding: 80px 20px;
}

.error-404-code {
    font-size: 7rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.error-404-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 16px 0 10px;
}

.error-404-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.error-404-search {
    max-width: 420px;
    margin: 0 auto 24px;
}

.error-404-search .search-form {
    display: flex;
    gap: 8px;
}

.error-404-search .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
}

.error-404-search .search-submit {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.error-404-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* =============================================
   MOBILE BOTTOM NAV
   ============================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    z-index: 999;
    padding: 6px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color var(--transition);
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary);
}

.mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
}

.screen-reader-text:focus {
    background: var(--white);
    clip: auto;
    height: auto;
    width: auto;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10001;
    padding: 15px;
    font-size: 1rem;
}

/* =============================================
   GUTENBERG / BLOCK STYLES
   ============================================= */
.wp-block-image {
    margin: 24px 0;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.wp-block-separator {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 32px 0;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-results-header {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
}

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

/* =============================================
   AUTHOR PAGE
   ============================================= */
.author-header {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.author-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-header-avatar img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
}

.author-header-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.author-header-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }

    .widget-area {
        width: 100%;
    }

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

    .featured-posts-main .post-card-thumbnail {
        height: 320px;
    }

    .featured-posts-aside {
        gap: 14px;
    }

    .featured-posts-aside .post-card-small {
        padding-bottom: 14px;
    }

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

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

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

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

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    :root {
        --header-height: 56px;
    }

    .primary-navigation {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
    }

    .primary-navigation.toggled {
        display: block;
    }

    .primary-navigation .menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-navigation .menu > li > a {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .primary-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .posts-list .post-card {
        flex-direction: column;
    }

    .posts-list .post-card-thumbnail {
        width: 100%;
    }

    .alignfull,
    .alignwide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .mobile-bottom-nav {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .mobile-bottom-nav-inner {
        width: 100%;
    }

    .mobile-bottom-nav a {
        flex: 1 1 0;
        min-width: 0;
        padding: 6px 8px;
    }

    .single-post-meta-item,
    .single-post-meta-item a,
    .breadcrumb-current,
    .post-nav-title,
    .entry-content p,
    .entry-content li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .entry-content iframe,
    .entry-content video,
    .entry-content embed,
    .entry-content object {
        max-width: 100%;
    }

    .home-load-more-btn {
        width: 100%;
        min-width: 0;
    }

    .single-post-title {
        font-size: 1.5rem;
    }

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

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

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .newsletter-section {
        padding: 32px 20px;
    }

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

    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    .back-to-top {
        bottom: 80px;
    }

    .social-share {
        flex-wrap: wrap;
    }

    .children {
        margin-left: 20px;
    }

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

    .hero-search .search-form {
        flex-direction: column;
    }

    .hero-search .search-submit {
        border-radius: var(--radius-md);
    }

    .search-overlay-inner {
        padding: 20px;
    }

    .search-overlay .search-form {
        flex-direction: column;
    }

    .single-post-meta {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .mobile-bottom-nav,
    .social-share,
    .ad-space,
    .scroll-progress,
    .post-navigation,
    .related-posts,
    .comments-area {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .site-content {
        display: block;
    }

    .entry-content a {
        color: #000;
        text-decoration: underline;
    }

    .entry-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
