/* ============================================================
   TECT THEME - Foxiz-Inspired Premium Blog
   Version: 1.0.0
   ============================================================ */

/* ==========================================================
   1. CSS VARIABLES + DARK MODE
   ========================================================== */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --navy: #1e1b4b;
    --navy-light: #312e81;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;

    /* Text */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Feedback */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --warning: #f59e0b;

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

    /* Layout */
    --container: 1280px;
    --header-h: 64px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 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);

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

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-dark: #475569;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
    --success-bg: #064e3b;
    --error-bg: #7f1d1d;
}


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

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

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

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    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;
    font-family: inherit;
    border: none;
    background: none;
    font-size: inherit;
}

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #ffffff;
    padding: 8px 16px;
    z-index: 100000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: #ffffff;
}


/* ==========================================================
   3. CONTAINER
   ========================================================== */

.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1440px;
}


/* ==========================================================
   4. HEADER
   ========================================================== */

.site-header {
    background-color: var(--navy);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.site-logo img,
.logo-icon {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo-accent {
    color: #38bdf8;
    font-weight: 800;
}

.site-logo:hover .logo-text {
    color: var(--primary-light);
}

.site-logo:hover .logo-accent {
    color: #7dd3fc;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: #ffffff;
}

.nav-item > a .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: transform var(--transition);
}

.nav-item:hover > a .icon {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1001;
    padding: 8px 0;
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    color: var(--text);
    padding: 10px 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-dropdown a:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
}

/* Header Buttons */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.header-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.header-btn svg,
.header-btn .icon {
    width: 20px;
    height: 20px;
}

/* Theme Toggle */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    transition: all var(--transition-slow);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: calc(100vh - var(--header-h));
    background: var(--bg-card);
    z-index: 999;
    overflow-y: auto;
    transition: right var(--transition-slow);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    padding: 24px 0;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-backdrop {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu a {
    color: var(--text);
    padding: 12px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.mobile-nav-menu .nav-dropdown,
.mobile-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu .nav-dropdown a,
.mobile-submenu a {
    padding-left: 40px;
    font-size: 0.875rem;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 0;
    transition: border-color var(--transition);
}

.search-input-wrapper:focus-within {
    border-bottom-color: var(--primary);
}

.search-input-wrapper svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-hint {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 12px;
}

.search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.search-close:hover {
    opacity: 1;
}

/* Dark mode header */
[data-theme="dark"] .site-header {
    background-color: var(--navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-nav-overlay {
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-dropdown {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}


/* ==========================================================
   5. HERO SECTION
   ========================================================== */

.section-hero {
    padding: 40px 0;
    background-color: var(--bg-alt);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.hero-card:hover {
    box-shadow: var(--shadow-md);
}

.hero-card__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0;
}

.hero-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.hero-card__title a:hover {
    color: var(--primary);
}

.hero-card__excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.hero-card__author-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
}

.hero-card__author-name {
    font-weight: 600;
    color: var(--text);
}

.hero-card__date {
    color: var(--text-muted);
}

.hero-card__date::before {
    content: "\00b7";
    margin-right: 6px;
}

.hero-card__image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.hero-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.hero-card:hover .hero-card__image img {
    transform: scale(1.03);
}


/* ==========================================================
   6. POST GRID SYSTEM
   ========================================================== */

.posts-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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


/* ==========================================================
   7. POST CARD
   ========================================================== */

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

.post-card__image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.post-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.post-card__author-avatar {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.post-card__author-name {
    font-weight: 600;
    color: var(--text);
}

.post-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

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

.post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

/* Card without image */
.post-card--no-image .post-card__body {
    padding: 24px;
}

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

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

.post-card--horizontal .post-card__body {
    padding: 24px;
}


/* ==========================================================
   8. SECTION HEADERS
   ========================================================== */

.section-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-badge {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 4px 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text);
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

.section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.section-header__link:hover {
    color: var(--primary-dark);
}

.section-header__link svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================
   9. CATEGORY SECTIONS
   ========================================================== */

.section-grid {
    padding: 48px 0;
}

.section-latest {
    padding: 60px 0;
}

.section-category {
    padding: 60px 0;
}

.section-bg-alt {
    background-color: var(--bg-alt);
}

.section-bg-white {
    background-color: var(--bg);
}


/* ==========================================================
   10. TOPICS SECTION
   ========================================================== */

.section-topics {
    padding: 60px 0;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.topic-chip:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.topic-chip__count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.topic-chip:hover .topic-chip__count {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================
   11. BADGE
   ========================================================== */

.badge {
    display: inline-block;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity var(--transition);
    line-height: 1.4;
}

.badge:hover {
    opacity: 0.85;
    color: #ffffff;
}

.badge--sm {
    padding: 2px 8px;
    font-size: 0.6875rem;
}

.badge--lg {
    padding: 6px 16px;
    font-size: 0.8125rem;
}

.badge--outline {
    background: transparent;
    border: 1px solid currentColor;
    color: var(--text);
}


/* ==========================================================
   12. SINGLE POST
   ========================================================== */

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.1s linear;
}

/* Article Header */
.article-header {
    padding: 60px 0 40px;
    text-align: center;
}

.article-header__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-header__breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.article-header__breadcrumb a:hover {
    color: var(--primary);
}

.article-header__breadcrumb span {
    color: var(--text-muted);
}

.article-header__category {
    margin-bottom: 20px;
}

.article-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 24px;
}

.article-header__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.article-header__avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.article-header__author-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.article-header__author-inline a,
.article-header__author-name {
    color: var(--text);
    text-decoration: none;
}

.article-header__author-inline a:hover,
.article-header__author-name:hover {
    color: var(--primary);
}

.article-header__sep {
    color: var(--text-muted);
}

.article-header__date,
.article-header__reading {
    color: var(--text-secondary);
}

.article-header__share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.share-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.share-icon svg {
    width: 16px;
    height: 16px;
}

/* Featured Image */
.article-featured-image {
    background: #f1f5f9;
    margin-bottom: 40px;
}

[data-theme="dark"] .article-featured-image {
    background: var(--bg-alt);
}

.article-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.article-featured-image__caption {
    text-align: center;
    padding: 12px 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 3-Column Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 40px;
    align-items: start;
}

/* LEFT: Sticky TOC + Share */
.article-left {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* TOC */
.toc {
    margin-bottom: 20px;
}

.toc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc__item {
    margin-bottom: 2px;
}

.toc__item--sub {
    padding-left: 14px;
}

.toc__link {
    display: block;
    padding: 5px 10px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.toc__link:hover {
    color: var(--primary);
    border-left-color: var(--primary-light);
    background: var(--bg-alt);
}

.toc__link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    background: var(--bg-alt);
}

/* Share Row - Horizontal */
.share-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.share-row__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.share-row__btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card);
}

/* RIGHT: Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    border: 1px solid var(--border);
    padding: 20px;
    background: var(--bg-card);
}

.sidebar-widget__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.sidebar-widget__posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget__posts li {
    border-bottom: 1px solid var(--border);
}

.sidebar-widget__posts li:last-child {
    border-bottom: none;
}

.sidebar-post-link {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    transition: color 0.15s;
}

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

.sidebar-post-link time {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sidebar-widget__cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget__cats li {
    border-bottom: 1px solid var(--border);
}

.sidebar-widget__cats li:last-child {
    border-bottom: none;
}

.sidebar-widget__cats a {
    display: block;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-widget__cats a:hover {
    color: var(--primary);
}

.sidebar-widget__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.sidebar-widget--newsletter {
    background: var(--bg-alt);
    border-color: var(--primary);
    border-top: 3px solid var(--primary);
}

.sidebar-widget--newsletter .sidebar-widget__title {
    border-bottom-color: transparent;
}

.sidebar-widget--newsletter input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.sidebar-widget--newsletter .btn--full {
    width: 100%;
}

/* Article Content */
.article-content {
    width: 100%;
    min-width: 0;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.article-content strong {
    font-weight: 700;
    color: var(--text);
}

.article-content em {
    font-style: italic;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 2rem 0;
    background: var(--bg-alt);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

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

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

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-content li::marker {
    color: var(--primary);
}

.article-content code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 2px 6px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: var(--primary);
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

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

.article-content table th {
    background: var(--bg-alt);
    font-weight: 700;
}

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

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

.article-content .wp-caption,
.article-content .aligncenter {
    display: block;
    margin: 2rem auto;
    text-align: center;
}

.article-content .alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.article-content .alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tags__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-right: 4px;
    line-height: 2;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.tag-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Article Share Bottom */
.article-share-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-share-bottom__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-right: 4px;
}

.article-share-bottom__icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-bottom .share-icon {
    width: 40px;
    height: 40px;
}

.article-share-bottom .share-icon:hover {
    color: #ffffff;
    border-color: transparent;
    background: var(--primary);
}

/* Author Box - Premium */
.author-box {
    position: relative;
    margin-top: 40px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
}

.author-box__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
}

.author-box__inner {
    display: flex;
    gap: 24px;
    padding: 28px;
}

img.author-box__avatar {
    width: 80px;
    height: 80px;
    max-width: none;
    flex-shrink: 0;
    border: 3px solid var(--primary);
    object-fit: cover;
}

div.author-box__avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 3px solid var(--primary);
    overflow: hidden;
}

.author-box__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.author-box__content {
    flex: 1;
    min-width: 0;
}

.author-box__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.author-box__name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text);
}

.author-box__name a {
    color: var(--text);
    text-decoration: none;
}

.author-box__name a:hover {
    color: var(--primary);
}

.author-box__bio {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.author-box__link:hover {
    gap: 8px;
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 32px 0;
    color: var(--text);
}

.comments-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 32px;
}

.comment-form__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text);
}

.comment-form__reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.comment-form__cancel-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.8125rem;
    opacity: 0.8;
}

.comment-form__cancel-reply:hover {
    opacity: 1;
}

.comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.comment-form__group {
    margin-bottom: 12px;
}

.comment-form__group input,
.comment-form__group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color 0.15s;
}

.comment-form__group input:focus,
.comment-form__group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form__group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

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

.comment-form__message {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-form__message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.comment-form__message.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
}

.comment {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment:first-child {
    padding-top: 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment--reply {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid var(--primary-light);
}

.comment[data-depth="2"] {
    margin-left: 80px;
}

.comment[data-depth="3"] {
    margin-left: 100px;
}

.comment__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

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

.comment__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 700;
}

.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.comment__author {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

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

.comment__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment__text p {
    margin: 0;
}

.comment__reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}

.comment__reply-btn:hover {
    color: var(--primary);
}

/* Comments Empty */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--text-muted);
    text-align: center;
}

.comments-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Related Posts */
.related-posts-section {
    padding: 60px 0;
}

/* Comments Section */
.comments-section {
    padding: 40px 0 60px;
    max-width: 860px;
    margin: 0 auto;
}

.comments-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
}


/* ==========================================================
   12b. SIDEBAR
   ========================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-posts li {
    border-bottom: 1px solid var(--border);
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-posts a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition);
}

.sidebar-posts a:hover {
    color: var(--primary);
}

.sidebar-posts .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-alt);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.sidebar-posts .text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-chip--sm {
    font-size: 0.8rem;
    padding: 4px 12px;
    border: 1px solid;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.topic-chip--sm:hover {
    opacity: 0.8;
}

.sidebar-newsletter p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sidebar-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    margin-bottom: 8px;
}

.sidebar-newsletter input[type="email"]:focus {
    border-color: var(--primary);
}


/* ==========================================================
   13. ARCHIVE & SEARCH
   ========================================================== */

.archive-header {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-alt);
}

.archive-type-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
}

.archive-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.archive-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.archive-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.archive-content {
    padding: 48px 0;
}

/* Search Form Inline */
.search-form-inline {
    display: flex;
    max-width: 540px;
    margin: 24px auto 0;
}

.search-form-inline input[type="search"],
.search-form-inline input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-form-inline input:focus {
    border-color: var(--primary);
}

.search-form-inline button {
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form-inline button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Search Results */
.search-results-info {
    margin-bottom: 32px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.search-results-info strong {
    color: var(--text);
}


/* ==========================================================
   14. STATIC PAGE
   ========================================================== */

.page-header {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-alt);
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.page-content {
    padding: 48px 0;
}


/* ==========================================================
   15. CONTACT PAGE
   ========================================================== */

.contact-hero {
    background: var(--navy);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.contact-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.contact-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
}

.contact-form-wrapper__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-message {
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-checkbox label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Info Cards */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    margin-bottom: 16px;
}

.info-card__icon svg {
    width: 22px;
    height: 22px;
}

.info-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.info-card__text a {
    color: var(--primary);
    text-decoration: none;
}

.info-card__text a:hover {
    text-decoration: underline;
}

/* Contact Map */
.contact-map {
    margin-top: 40px;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border);
}


/* ==========================================================
   16. ERROR PAGES
   ========================================================== */

.error-page {
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page__inner {
    max-width: 540px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.1;
    color: var(--text);
    margin-bottom: 0;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: -24px;
    margin-bottom: 16px;
}

.error-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.error-search {
    margin-top: 40px;
}


/* ==========================================================
   17. FOOTER
   ========================================================== */

/* Footer Newsletter */
.footer-newsletter {
    background: var(--primary);
    padding: 48px 0;
}

.footer-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-newsletter__content {
    flex: 1;
}

.footer-newsletter__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-newsletter__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-newsletter__form {
    flex-shrink: 0;
    width: 420px;
    max-width: 100%;
}

.footer-newsletter__input-group {
    display: flex;
}

.footer-newsletter__input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--transition);
}

.footer-newsletter__input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter__input-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter__input-group .btn {
    padding: 14px 28px;
    background: var(--navy);
    color: #ffffff;
    border: 2px solid var(--navy);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.footer-newsletter__input-group .btn:hover {
    background: #0f172a;
    border-color: #0f172a;
}

/* Footer Main */
.site-footer {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.85);
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-about {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social__link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

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

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Dark mode footer (already dark, just ensure) */
[data-theme="dark"] .site-footer {
    background-color: var(--navy);
}

[data-theme="dark"] .footer-newsletter {
    background: var(--primary);
}


/* ==========================================================
   18. BUTTONS
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.4;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border-dark);
}

.btn-dark {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.btn-dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: #ffffff;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn--full {
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* ==========================================================
   19. PAGINATION
   ========================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

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

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: var(--text-muted);
    font-weight: 600;
}

.pagination-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}


/* ==========================================================
   20. SCROLL TO TOP
   ========================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
    z-index: 900;
    box-shadow: var(--shadow-md);
}

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

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

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


/* ==========================================================
   21. NEWSLETTER FORM
   ========================================================== */

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form__input-group {
    display: flex;
    gap: 0;
}

.newsletter-form__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form__input:focus {
    border-color: var(--primary);
}

.newsletter-form__input::placeholder {
    color: var(--text-muted);
}

.newsletter-form__btn {
    padding: 12px 20px;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.newsletter-form__btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.newsletter-form__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-form .form-message {
    font-size: 0.8125rem;
    padding: 10px 16px;
    margin-bottom: 0;
}

/* Spin animation for loading */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 0.8s linear infinite;
}


/* ==========================================================
   22. EMPTY STATE
   ========================================================== */

.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state__icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   23. UTILITIES
   ========================================================== */

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

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-secondary); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

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

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }

.transition-all {
    transition: all var(--transition);
}


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

.ad-container {
    margin: 24px auto;
    text-align: center;
    overflow: hidden;
}

.ad-container--header {
    margin: 0 auto 24px;
}

.ad-container--sidebar {
    margin: 0 auto 24px;
}

.ad-container--in-content {
    margin: 32px auto;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ad-container__label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ad-container--footer {
    margin: 24px auto;
}


/* ==========================================================
   25. RESPONSIVE
   ========================================================== */

/* ----- 1280px ----- */
@media (max-width: 1280px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .footer-grid {
        gap: 36px;
    }
}

/* ----- 1024px ----- */
@media (max-width: 1024px) {
    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Post grids */
    .posts-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* Single post - 2 columns on tablet */
    .article-layout {
        grid-template-columns: 1fr 220px;
        gap: 24px;
    }

    .article-left {
        display: none;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 200px;
    }

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

    .footer-about {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-newsletter__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter__form {
        width: 100%;
        max-width: 480px;
    }
}

/* ----- 768px ----- */
@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .site-branding {
        gap: 16px;
    }

    /* Hero */
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-card__content {
        padding: 24px;
        order: 2;
    }

    .hero-card__image {
        order: 1;
        min-height: 200px;
        max-height: 240px;
    }

    .hero-card__title {
        font-size: 1.25rem;
    }

    /* Post grids */
    .posts-grid-5,
    .posts-grid-4,
    .posts-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    /* Section header */
    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    /* Category sections */
    .section-category {
        padding: 40px 0;
    }

    /* Single post */
    .article-header {
        padding: 40px 0 24px;
    }

    .article-header__title {
        font-size: 1.75rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-left {
        display: none;
    }

    .article-sidebar {
        order: 2;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .article-content blockquote {
        padding: 16px 20px;
    }

    /* Author box */
    .author-box__inner {
        flex-direction: column;
        gap: 16px;
    }

    img.author-box__avatar,
    div.author-box__avatar {
        width: 64px;
        height: 64px;
    }

    /* Comments */
    .comment-form__row {
        grid-template-columns: 1fr;
    }

    .comment--reply {
        margin-left: 20px;
    }

    .comment[data-depth="2"] {
        margin-left: 36px;
    }

    .comment[data-depth="3"] {
        margin-left: 48px;
    }

    /* Archive */
    .archive-header {
        padding: 40px 0;
    }

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

    /* Page */
    .page-header {
        padding: 40px 0;
    }

    /* Contact */
    .contact-hero {
        padding: 40px 0;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-sidebar {
        flex-direction: column;
    }

    .info-card {
        min-width: 0;
    }

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

    .footer-about {
        grid-column: auto;
    }

    .footer-main {
        padding: 40px 0;
    }

    .footer-newsletter {
        padding: 32px 0;
    }

    .footer-newsletter__title {
        font-size: 1.25rem;
    }

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

    /* Pagination */
    .pagination {
        padding: 32px 0;
        gap: 4px;
    }

    .pagination-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.8125rem;
    }

    /* Error page */
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    /* Search overlay */
    .search-input-wrapper input {
        font-size: 1.5rem;
    }

    /* Topics */
    .topics-grid {
        gap: 8px;
    }

    .topic-chip {
        padding: 6px 16px;
        font-size: 0.8125rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .btn--lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ----- 480px ----- */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Post grids - single column */
    .posts-grid-5,
    .posts-grid-4,
    .posts-grid-3,
    .posts-grid-2 {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .section-hero {
        padding: 24px 0;
    }

    .hero-card__content {
        padding: 20px;
    }

    .hero-card__title {
        font-size: 1.125rem;
    }

    .hero-card__excerpt {
        display: none;
    }

    /* Post card */
    .post-card__body {
        padding: 16px;
    }

    .post-card__title {
        font-size: 1rem;
    }

    /* Section */
    .section-category {
        padding: 32px 0;
    }

    .section-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.125rem;
    }

    /* Single post */
    .article-header {
        padding: 32px 0 20px;
    }

    .article-header__title {
        font-size: 1.5rem;
    }

    .article-header__subtitle {
        font-size: 1rem;
    }

    .article-header__info {
        flex-direction: column;
        gap: 8px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-sidebar {
        padding: 0;
    }

    .article-content h2 {
        font-size: 1.375rem;
    }

    .article-content h3 {
        font-size: 1.125rem;
    }

    .article-content pre {
        padding: 16px;
        font-size: 0.8125rem;
    }

    .article-tags {
        gap: 6px;
    }

    .tag-chip {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .article-share-bottom {
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-share-bottom .share-icon {
        width: 36px;
        height: 36px;
    }

    /* Author box */
    .author-box__inner {
        padding: 20px;
    }

    img.author-box__avatar,
    div.author-box__avatar {
        width: 56px;
        height: 56px;
    }

    .comment-form-wrapper {
        padding: 20px;
    }

    .comment-form__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Contact */
    .contact-hero {
        padding: 32px 0;
    }

    .contact-hero__title {
        font-size: 1.5rem;
    }

    .contact-section {
        padding: 32px 0;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    /* Archive */
    .archive-header {
        padding: 32px 0;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .archive-content {
        padding: 32px 0;
    }

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

    .search-form-inline button {
        width: 100%;
    }

    /* Footer */
    .footer-newsletter {
        padding: 24px 0;
    }

    .footer-newsletter__title {
        font-size: 1.125rem;
    }

    .footer-newsletter__input-group {
        flex-direction: column;
        gap: 8px;
    }

    .footer-newsletter__input-group .btn {
        width: 100%;
        text-align: center;
    }

    .footer-main {
        padding: 32px 0;
    }

    .footer-social {
        gap: 8px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    /* Pagination */
    .pagination {
        padding: 24px 0;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 0.75rem;
    }

    /* Error page */
    .error-page {
        padding: 60px 0;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .error-desc {
        font-size: 0.9375rem;
    }

    .error-actions {
        flex-direction: column;
    }

    /* Topics */
    .topic-chip {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    /* Mobile nav */
    .mobile-nav-overlay {
        width: 280px;
    }

    /* Scroll to top */
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    /* Search overlay */
    .search-input-wrapper input {
        font-size: 1.25rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
}

/* ----- Print ----- */
@media print {
    .site-header,
    .site-footer,
    .footer-newsletter,
    .article-left,
    .article-sidebar,
    .article-share-bottom,
    .scroll-to-top,
    .reading-progress,
    .mobile-nav-overlay,
    .mobile-nav-backdrop,
    .search-overlay,
    .ad-container,
    .pagination,
    .related-posts-section,
    .comments-section {
        display: none !important;
    }

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

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

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

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }

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

/* Breadcrumb Navigation */
.breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--color-border, #e5e7eb); margin-bottom: 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; flex-wrap: wrap; }
.breadcrumb-item { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted, #6b7280); }
.breadcrumb-item a { color: var(--color-text-muted, #6b7280); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--color-primary, #2563eb); }
.breadcrumb-item.active { color: var(--color-text, #111827); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--color-text-muted, #9ca3af); font-size: 12px; }
