/*
Theme Name: asteinosei.com
Theme URI: https://asteinosei.com
Author: Артём Левин
Author URI: https://asteinosei.com
Description: Русскоязычный информационно-образовательный журнал о педагогике, методиках обучения, развитии образовательных систем и лидерстве в сфере образования.
Version: 1.1
Text Domain: asteinosei
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   0. CSS Custom Properties
   ========================================================================== */

:root {
    --color-bg: #F9F7F4;
    --color-text: #1F2A3E;
    --color-accent: #C5542B;
    --color-accent-hover: #A14424;
    --color-accent-light: rgba(197, 84, 43, 0.08);
    --color-sage: #5F7B6E;
    --color-sage-light: rgba(95, 123, 110, 0.10);
    --color-dust: #B5B0A5;
    --color-dust-light: rgba(181, 176, 165, 0.18);
    --color-white: #FFFFFF;
    --color-border: rgba(31, 42, 62, 0.09);
    --color-card-bg: #FFFFFF;
    --color-overlay: rgba(31, 42, 62, 0.55);

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;

    --shadow-card: 0 2px 12px rgba(31, 42, 62, 0.06);
    --shadow-hover: 0 6px 24px rgba(31, 42, 62, 0.10);
    --shadow-btn: 0 0.2px 0 rgba(31, 42, 62, 0.18);

    --transition-base: 0.25s ease;
    --max-width: 1280px;
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

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

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

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

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

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

p {
    margin: 0 0 1.1em;
    line-height: 1.72;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

ul, ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}

blockquote {
    border-left: 3px solid var(--color-sage);
    padding: 1em 1.4em;
    margin: 1.5em 0;
    background: var(--color-sage-light);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    border: 1px solid var(--color-dust);
    padding: 0.6em 0.9em;
    text-align: left;
}

th {
    background: var(--color-dust-light);
    font-weight: 600;
}

pre, code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

pre {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1.2em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

code {
    background: var(--color-dust-light);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

/* ==========================================================================
   2. Layout Wrappers
   ========================================================================== */

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

.site-main {
    flex: 1;
}

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-area {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 0;
}

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

.content-sidebar {
    flex: 0 0 27%;
}

.content-full {
    width: 85%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 0;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    max-width: 40%;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.brand-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo-link:hover {
    opacity: 0.85;
}

.brand-identity {
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-name a {
    color: inherit;
}

.brand-name a:hover {
    color: var(--color-accent);
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--color-dust);
    line-height: 1.35;
    margin-top: 0.15em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Leader Line */
.leader-line {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.82rem;
    color: var(--color-sage);
    max-width: 280px;
    line-height: 1.4;
    flex-shrink: 1;
    min-width: 0;
    opacity: 0.85;
    text-align: center;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 0.5em 1em;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-base), color var(--transition-base);
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    flex-shrink: 0;
}

.nav-toggle-icon {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-base);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform var(--transition-base);
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }

.nav-toggle.is-active .nav-toggle-icon {
    background: transparent;
}

.nav-toggle.is-active .nav-toggle-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--color-dust);
}

.breadcrumbs a {
    color: var(--color-sage);
}

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

.breadcrumb-sep {
    margin: 0 0.4em;
    opacity: 0.5;
}

/* ==========================================================================
   5. Cards
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

/* Category micro-patterns */
.card[data-category="methods"] .card-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(95,123,110,0.07) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
}

.card[data-category="leadership"] .card-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(197,84,43,0.04) 6px, rgba(197,84,43,0.04) 7px);
    pointer-events: none;
}

.card[data-category="heritage"] .card-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(31,42,62,0.03) 5px, rgba(31,42,62,0.03) 6px);
    pointer-events: none;
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.03);
}

.card-no-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-sage-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-no-thumb svg {
    width: 48px;
    height: 48px;
    opacity: 0.35;
}

.card-body {
    flex: 1;
    padding: 1.3rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-sage);
    margin-bottom: 0.5em;
    border-bottom: 1px solid transparent;
    display: inline-block;
    align-self: flex-start;
    transition: border-color var(--transition-base);
}

.card-category:hover {
    border-bottom-color: var(--color-sage);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

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

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

.card-excerpt {
    font-size: 0.9rem;
    color: rgba(31, 42, 62, 0.72);
    line-height: 1.6;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1em;
    border-top: 1px solid var(--color-border);
    font-size: 0.78rem;
    color: var(--color-dust);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-base);
}

.card-read-more:hover {
    gap: 0.5em;
    color: var(--color-accent-hover);
}

/* ==========================================================================
   6. Front Page Sections
   ========================================================================== */

.front-section {
    padding: 3.5rem 0;
}

.front-section:nth-child(even) {
    background: var(--color-white);
}

.front-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.front-section-header h2 {
    font-size: 1.85rem;
    position: relative;
    display: inline-block;
}

.front-section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin: 0.5em auto 0;
    border-radius: 2px;
}

.front-section-header p {
    max-width: 640px;
    margin: 0.8em auto 0;
    color: rgba(31, 42, 62, 0.65);
    font-size: 1.02rem;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background: linear-gradient(175deg, var(--color-white) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-sage-light) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5em;
    color: var(--color-text);
}

.hero-content p {
    font-size: 1.12rem;
    color: rgba(31, 42, 62, 0.7);
    max-width: 600px;
    margin: 0 auto 1.8em;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.hero-cta:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-btn);
    color: var(--color-white);
}

/* Methodology cards */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.methodology-item {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

.methodology-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-sage);
}

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

.methodology-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2em;
    background: var(--color-sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.methodology-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-sage);
}

.methodology-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

.methodology-item p {
    font-size: 0.88rem;
    color: rgba(31, 42, 62, 0.65);
    line-height: 1.6;
}

/* Steps */
.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
}

.step-item::before {
    content: counter(step-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
}

.step-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}

.step-item p {
    font-size: 0.88rem;
    color: rgba(31, 42, 62, 0.65);
    line-height: 1.6;
}

/* Leaders quote section */
.leaders-section {
    position: relative;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.leader-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--color-accent);
}

.leader-card blockquote {
    border: none;
    padding: 0;
    margin: 0 0 1em;
    background: none;
    font-size: 1rem;
    line-height: 1.6;
}

.leader-card cite {
    font-size: 0.82rem;
    color: var(--color-dust);
    font-style: normal;
    font-weight: 600;
}

/* CTA bottom */
.cta-bottom {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(175deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.cta-bottom h2 {
    font-size: 1.65rem;
    margin-bottom: 0.5em;
}

.cta-bottom p {
    max-width: 550px;
    margin: 0 auto 1.5em;
    color: rgba(31, 42, 62, 0.65);
}

/* ==========================================================================
   7. Single Post / Page
   ========================================================================== */

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.entry-header h1 {
    font-size: 2.1rem;
    margin-bottom: 0.4em;
}

.entry-meta {
    font-size: 0.84rem;
    color: var(--color-dust);
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.entry-meta a {
    color: var(--color-sage);
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.78;
}

.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5em 0; }

/* Heritage index block */
.heritage-block {
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    background: var(--color-sage-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-sage);
}

.heritage-block-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sage);
    margin-bottom: 0.5em;
}

.heritage-block-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--color-text);
    line-height: 1.55;
}

/* Focus read mode */
.entry-content.focus-active > *:not(.focus-highlight) {
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.entry-content .focus-highlight {
    transform: scale(1.015);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    gap: 1rem;
}

.post-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--color-card-bg);
    box-shadow: var(--shadow-card);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    transition: box-shadow var(--transition-base), color var(--transition-base);
}

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

.post-nav-prev {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 50px;
}

.post-nav-next {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 12px;
    margin-left: auto;
}

/* Practice / Discuss buttons */
.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.action-practice {
    background: var(--color-accent);
    color: var(--color-white);
}

.action-practice:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-btn);
}

.action-discuss {
    background: var(--color-sage-light);
    color: var(--color-sage);
}

.action-discuss:hover {
    background: rgba(95, 123, 110, 0.18);
}

/* ==========================================================================
   8. Comments
   ========================================================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-list .children {
    padding-left: 2rem;
    list-style: none;
}

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

.comment-meta {
    font-size: 0.78rem;
    color: var(--color-dust);
    margin-bottom: 0.5em;
}

.comment-body p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.3em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 1em;
    border: 1px solid var(--color-dust);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    background: var(--color-white);
    transition: border-color var(--transition-base);
    margin-bottom: 1em;
}

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

.comment-form .submit {
    padding: 12px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.comment-form .submit:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-btn);
}

/* ==========================================================================
   9. Sidebar / Widgets
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
    padding: 1.4rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid var(--color-accent-light);
}

.widget ul {
    list-style: none;
    padding: 0;
}

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

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

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

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

.widget p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(31, 42, 62, 0.75);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
    background: var(--color-text);
    color: rgba(249, 247, 244, 0.72);
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-widgets .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.footer-widgets .widget-title {
    color: var(--color-bg);
    border-bottom-color: rgba(249, 247, 244, 0.12);
}

.footer-widgets .widget ul li {
    border-bottom-color: rgba(249, 247, 244, 0.08);
}

.footer-widgets .widget ul li a {
    color: rgba(249, 247, 244, 0.65);
}

.footer-widgets .widget ul li a:hover {
    color: var(--color-accent);
}

.footer-widgets .widget p {
    color: rgba(249, 247, 244, 0.55);
}

.footer-bottom {
    border-top: 1px solid rgba(249, 247, 244, 0.08);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(249, 247, 244, 0.4);
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */

.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 2.5rem 0 1rem;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6em;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition-base), color var(--transition-base);
}

.pagination-wrap a {
    background: var(--color-card-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.pagination-wrap a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.pagination-wrap .current {
    background: var(--color-accent);
    color: var(--color-white);
}

.pagination-wrap .dots {
    background: none;
    color: var(--color-dust);
    box-shadow: none;
}

/* ==========================================================================
   12. Search Form
   ========================================================================== */

.search-form-wrap {
    position: relative;
    max-width: 480px;
}

.search-field {
    width: 100%;
    padding: 0.8em 3em 0.8em 1.2em;
    border: 2px solid var(--color-dust);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-white);
    transition: width 0.15s cubic-bezier(0.2, 0, 0.4, 1), border-color var(--transition-base);
}

.search-field:hover {
    width: 105%;
    transition: width 0.08s cubic-bezier(0.8, 0, 1, 1);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-accent);
    width: 105%;
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dust);
    transition: color var(--transition-base);
    padding: 0.3em;
}

.search-submit:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   13. Cookie Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-text);
    color: rgba(249, 247, 244, 0.85);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(31, 42, 62, 0.15);
    transition: transform 0.4s ease;
}

.cookie-banner.is-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-accept {
    flex-shrink: 0;
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--transition-base);
}

.cookie-accept:hover {
    background: var(--color-accent-hover);
}

/* ==========================================================================
   14. 404
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 0.2em;
}

.error-page h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.error-page p {
    color: rgba(31, 42, 62, 0.6);
    max-width: 480px;
    margin: 0 auto 1.5em;
}

.error-home-link {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-base);
}

.error-home-link:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

/* ==========================================================================
   15. Page Blog — Checkerboard pattern for archive-like display
   ========================================================================== */

.blog-checker {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.blog-checker .card:nth-child(even) {
    flex-direction: row;
}

.blog-checker .card:nth-child(even) .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.blog-checker .card:nth-child(even) .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.blog-checker .card:nth-child(even) .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto;
}

.blog-checker .card:nth-child(even) .card-no-thumb {
    height: 100%;
    aspect-ratio: auto;
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .leader-line {
        display: none;
    }

    .header-brand {
        max-width: 55%;
    }

    .nav-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .header-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .nav-list li a {
        padding: 0.7em 1em;
    }

    .content-area {
        flex-direction: column;
    }

    .content-sidebar {
        flex: none;
        width: 100%;
    }

    .content-full {
        width: 92%;
    }

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

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

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

    .blog-checker .card:nth-child(even) {
        flex-direction: column;
    }

    .blog-checker .card:nth-child(even) .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .blog-checker .card:nth-child(even) .card-thumb-wrap a {
        position: static;
    }

    .blog-checker .card:nth-child(even) .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .header-brand {
        max-width: 70%;
    }

    .brand-tagline {
        display: none;
    }

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

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

    .steps-list {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-nav-next {
        margin-left: 0;
    }

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

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