/*
Theme Name: EnergyFlow_6943
Theme URI: https://azispro.ru
Author: Рябинина Анна
Author URI: https://azispro.ru
Description: Советы по экономии энергии, обзоры оборудования и технологий.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energyflow
*/

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

:root {
    --ef-anthracite: #1E1E1E;
    --ef-anthracite-light: #2A2A2A;
    --ef-anthracite-mid: #333333;
    --ef-energy-green: #00A86B;
    --ef-energy-green-dim: rgba(0, 168, 107, 0.15);
    --ef-steel-blue: #3A6EA5;
    --ef-text-primary: #F0F0F0;
    --ef-text-secondary: #B0B0B0;
    --ef-card-bg: rgba(42, 42, 42, 0.7);
    --ef-border-subtle: rgba(240, 240, 240, 0.08);
    --ef-danger-red: #E8453C;
    --ef-warning-amber: #F5A623;
    --ef-max-width: 1280px;
    --ef-radius-none: 0;
    --ef-font-mono: 'Courier New', Courier, monospace;
    --ef-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --ef-transition-snappy: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--ef-font-main);
    background-color: var(--ef-anthracite);
    color: var(--ef-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--ef-steel-blue);
    text-decoration: none;
    transition: color var(--ef-transition-snappy);
}

a:hover,
a:focus {
    color: var(--ef-energy-green);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--ef-text-primary);
    line-height: 1.3;
    margin-bottom: 0.6em;
    margin-top: 1.2em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
}

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

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

table, th, td {
    border: 1px solid var(--ef-text-secondary);
}

th, td {
    padding: 0.6em 0.9em;
    text-align: left;
}

th {
    background: var(--ef-anthracite-mid);
    color: var(--ef-text-primary);
    font-weight: 600;
}

td {
    color: var(--ef-text-primary);
}

blockquote {
    border-left: 3px solid var(--ef-energy-green);
    padding: 0.8em 1.2em;
    margin: 1em 0;
    background: var(--ef-anthracite-light);
    color: var(--ef-text-secondary);
    font-style: italic;
}

pre, code {
    font-family: var(--ef-font-mono);
    background: var(--ef-anthracite-light);
    color: var(--ef-energy-green);
    padding: 0.15em 0.4em;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1em;
}

pre code {
    padding: 0;
}

/* ========== CUSTOM CURSOR ========== */
@media (pointer: fine) {
    body {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2 L2 18 L7 13 L12 20 L15 18 L10 11 L17 11 Z' fill='%23F0F0F0' stroke='%231E1E1E' stroke-width='1'/%3E%3C/svg%3E") 2 2, auto;
    }
    a, button, [role="button"], input[type="submit"] {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='none' stroke='%2300A86B' stroke-width='2'/%3E%3Ctext x='14' y='18' text-anchor='middle' fill='%2300A86B' font-size='12' font-weight='bold'%%3E%%%3C/text%3E%3C/svg%3E") 14 14, pointer;
    }
}

/* ========== READING PROGRESS BAR ========== */
.ef-reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.ef-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ef-energy-green), #00E892);
    transition: width 0.1s linear;
    box-shadow: 0 0 6px var(--ef-energy-green);
}

.ef-reading-progress-bar.ef-bar-pulse {
    animation: efBarPulse 0.8s ease-in-out 3;
}

@keyframes efBarPulse {
    0%, 100% { box-shadow: 0 0 6px var(--ef-energy-green); }
    50% { box-shadow: 0 0 18px var(--ef-energy-green), 0 0 30px var(--ef-energy-green); }
}

/* ========== HEADER ========== */
.ef-site-header {
    background: var(--ef-anthracite);
    border-bottom: 1px solid var(--ef-border-subtle);
    position: relative;
    z-index: 100;
}

.ef-header-inner {
    max-width: var(--ef-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 1.5em;
}

.ef-brand {
    display: flex;
    align-items: center;
    gap: 0.7em;
    text-decoration: none;
    flex-shrink: 0;
}

.ef-brand img,
.ef-brand svg {
    width: 44px;
    height: 44px;
}

.ef-brand-text {
    display: flex;
    flex-direction: column;
}

.ef-site-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ef-text-primary);
    line-height: 1.2;
    margin: 0;
}

.ef-site-tagline {
    font-size: 0.72rem;
    color: var(--ef-text-secondary);
    line-height: 1.3;
    margin: 0;
}

/* Navigation */
.ef-nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--ef-energy-green);
    color: var(--ef-energy-green);
    font-size: 1.5rem;
    padding: 0.2em 0.5em;
    line-height: 1;
}

.ef-primary-nav ul {
    display: flex;
    list-style: none;
    gap: 0.3em;
    margin: 0;
    padding: 0;
}

.ef-primary-nav a {
    display: block;
    padding: 0.5em 1em;
    color: var(--ef-text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--ef-transition-snappy);
}

.ef-primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ef-energy-green);
    transition: width var(--ef-transition-snappy);
}

.ef-primary-nav a:hover,
.ef-primary-nav .current-menu-item > a {
    color: var(--ef-energy-green);
}

.ef-primary-nav a:hover::after,
.ef-primary-nav .current-menu-item > a::after {
    width: 60%;
}

/* ========== BREADCRUMBS ========== */
.ef-breadcrumbs-wrap {
    max-width: var(--ef-max-width);
    margin: 0 auto;
    padding: 0.8em 1.5em;
}

.ef-breadcrumbs {
    font-size: 0.82rem;
    color: var(--ef-text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    align-items: center;
}

.ef-breadcrumbs a {
    color: var(--ef-text-secondary);
}

.ef-breadcrumbs a:hover {
    color: var(--ef-energy-green);
}

.ef-bc-sep {
    color: var(--ef-energy-green);
    margin: 0 0.15em;
    font-size: 0.75em;
}

.ef-bc-current {
    color: var(--ef-text-primary);
}

/* ========== MAIN LAYOUT ========== */
.ef-site-main {
    max-width: var(--ef-max-width);
    margin: 0 auto;
    padding: 1.5em;
    min-height: 55vh;
}

.ef-layout-wide {
    max-width: 85%;
    margin: 0 auto;
}

.ef-layout-sidebar {
    display: flex;
    gap: 3%;
    align-items: flex-start;
}

.ef-content-area {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.ef-sidebar-area {
    flex: 0 0 27%;
    max-width: 27%;
    position: sticky;
    top: 1.5em;
}

.ef-layout-no-sidebar .ef-content-area {
    flex: 0 0 85%;
    max-width: 85%;
    margin: 0 auto;
}

/* ========== SIDEBAR ========== */
.ef-sidebar-area .widget {
    background: var(--ef-card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.2em;
    margin-bottom: 1.5em;
    border: 1px solid var(--ef-border-subtle);
}

.ef-sidebar-area .widget-title,
.ef-sidebar-area .widgettitle {
    font-size: 1rem;
    color: var(--ef-energy-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.5em;
    margin-bottom: 0.8em;
    border-bottom: 1px dashed var(--ef-border-subtle);
    margin-top: 0;
}

.ef-sidebar-area ul {
    list-style: none;
    padding: 0;
}

.ef-sidebar-area li {
    padding: 0.35em 0;
    border-bottom: 1px solid var(--ef-border-subtle);
}

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

.ef-sidebar-area a {
    color: var(--ef-text-secondary);
    font-size: 0.9rem;
}

.ef-sidebar-area a:hover {
    color: var(--ef-energy-green);
}

/* ========== FRONT PAGE - BROKEN GRID ========== */
.ef-hero-section {
    margin-bottom: 2.5em;
}

.ef-about-block {
    background: var(--ef-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ef-border-subtle);
    padding: 2em 2.5em;
    margin-bottom: 2.5em;
}

.ef-about-block p {
    margin: 0 0 0.5em;
    background: none;
    color: var(--ef-text-secondary);
    line-height: 1.7;
}

.ef-about-block p:last-child {
    margin-bottom: 0;
}

.ef-thematic-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-bottom: 2.5em;
}

.ef-thematic-card {
    background: var(--ef-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ef-border-subtle);
    padding: 1.8em 2em;
}

.ef-thematic-card h3 {
    margin-top: 0;
    color: var(--ef-energy-green);
    font-size: 1.15rem;
}

.ef-thematic-card p {
    margin: 0 0 0.5em;
    background: none;
    color: var(--ef-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.ef-thematic-card p:last-child {
    margin-bottom: 0;
}

.ef-thematic-card ul {
    color: var(--ef-text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.ef-bottom-block {
    background: var(--ef-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ef-border-subtle);
    padding: 2em 2.5em;
    margin-top: 2.5em;
}

.ef-bottom-block h2 {
    margin-top: 0;
    color: var(--ef-energy-green);
}

.ef-bottom-block p {
    margin: 0 0 0.5em;
    background: none;
    color: var(--ef-text-secondary);
    line-height: 1.7;
}

.ef-bottom-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ef-thematic-pair {
        grid-template-columns: 1fr;
    }
}

.ef-section-heading {
    font-size: 1.5rem;
    color: var(--ef-text-primary);
    margin-bottom: 1.2em;
    padding-left: 0.6em;
    border-left: 3px solid var(--ef-energy-green);
    margin-top: 0;
}

.ef-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}

.ef-posts-grid.ef-broken-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
}

.ef-broken-grid .ef-card-entry:nth-child(6n+1) {
    grid-column: 1 / 8;
    grid-row: span 2;
}

.ef-broken-grid .ef-card-entry:nth-child(6n+2) {
    grid-column: 8 / 13;
}

.ef-broken-grid .ef-card-entry:nth-child(6n+3) {
    grid-column: 8 / 13;
}

.ef-broken-grid .ef-card-entry:nth-child(6n+4) {
    grid-column: 1 / 6;
}

.ef-broken-grid .ef-card-entry:nth-child(6n+5) {
    grid-column: 6 / 13;
    grid-row: span 2;
}

.ef-broken-grid .ef-card-entry:nth-child(6n+6) {
    grid-column: 1 / 6;
}

/* ========== POST CARD ========== */
.ef-card-entry {
    background: var(--ef-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ef-border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--ef-transition-snappy), box-shadow var(--ef-transition-snappy);
}

.ef-card-entry:hover {
    border-color: rgba(0, 168, 107, 0.3);
    box-shadow: 0 0 20px rgba(0, 168, 107, 0.08);
}

.ef-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ef-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ef-card-entry:hover .ef-card-thumb img {
    transform: scale(1.04);
}

.ef-card-no-thumb {
    background: linear-gradient(135deg, var(--ef-anthracite-mid), var(--ef-anthracite-light));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

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

/* Efficiency Indicator */
.ef-efficiency-gauge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 2px;
    padding: 3px 6px;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid var(--ef-border-subtle);
}

.ef-gauge-seg {
    width: 6px;
    height: 16px;
    background: var(--ef-anthracite-mid);
    transition: background var(--ef-transition-snappy);
}

.ef-gauge-seg.ef-seg-active-low { background: var(--ef-danger-red); }
.ef-gauge-seg.ef-seg-active-mid { background: var(--ef-warning-amber); }
.ef-gauge-seg.ef-seg-active-high { background: var(--ef-energy-green); }

.ef-card-body {
    padding: 1em 1.2em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ef-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.6em;
    font-size: 0.78rem;
    color: var(--ef-text-secondary);
}

.ef-card-cat {
    display: inline-block;
    border: 1px solid var(--ef-energy-green);
    color: var(--ef-energy-green);
    padding: 0.1em 0.5em;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ef-card-cat:hover {
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
}

.ef-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    margin-top: 0;
    line-height: 1.35;
}

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

.ef-card-title a:hover {
    color: var(--ef-energy-green);
}

.ef-card-excerpt {
    font-size: 0.88rem;
    color: var(--ef-text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.8em;
}

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

.ef-card-excerpt a {
    color: var(--ef-steel-blue);
}

.ef-card-footer {
    margin-top: auto;
    padding-top: 0.6em;
    border-top: 1px dashed var(--ef-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CTA Button - cybernetic style */
.ef-btn-read {
    display: inline-block;
    padding: 0.45em 1.2em;
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: var(--ef-radius-none);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--ef-transition-snappy);
}

.ef-btn-read:hover {
    color: var(--ef-anthracite);
    box-shadow: 0 0 0 2px var(--ef-energy-green), inset 0 0 12px rgba(0, 232, 146, 0.25), 0 0 15px rgba(0, 168, 107, 0.3);
}

.ef-btn-read::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.ef-btn-read:hover::after {
    width: 300px;
    height: 300px;
}

.ef-card-date-sm {
    font-size: 0.75rem;
    color: var(--ef-text-secondary);
}

/* Data Sheet Style */
.ef-datasheet {
    font-family: var(--ef-font-mono);
    font-size: 0.78rem;
    color: var(--ef-text-secondary);
    padding: 0.5em 0;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.ef-datasheet-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.ef-datasheet-icon {
    color: var(--ef-energy-green);
    font-size: 0.9em;
}

/* ========== SINGLE POST ========== */
.ef-single-header {
    margin-bottom: 1.5em;
}

.ef-single-title {
    font-size: 1.8rem;
    margin-bottom: 0.4em;
    margin-top: 0;
}

.ef-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    font-size: 0.85rem;
    color: var(--ef-text-secondary);
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px dashed var(--ef-border-subtle);
}

.ef-single-thumb {
    margin-bottom: 1.5em;
}

.ef-single-thumb img {
    width: 100%;
}

.ef-entry-content h1:first-child,
.ef-entry-content h2:first-child,
.ef-entry-content h3:first-child {
    margin-top: 0;
}

.ef-post-tags {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px dashed var(--ef-border-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.ef-tag-link {
    display: inline-block;
    border: 1px solid var(--ef-text-secondary);
    color: var(--ef-text-secondary);
    padding: 0.15em 0.6em;
    font-size: 0.78rem;
    font-family: var(--ef-font-mono);
}

.ef-tag-link:hover {
    border-color: var(--ef-energy-green);
    color: var(--ef-energy-green);
}

.ef-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-post-nav a {
    color: var(--ef-text-secondary);
    font-size: 0.88rem;
}

.ef-post-nav a:hover {
    color: var(--ef-energy-green);
}

/* ========== COMMENTS ========== */
.ef-comments-section {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 2px solid var(--ef-border-subtle);
}

.ef-comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.2em;
    margin-top: 0;
}

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

.ef-comment-item {
    padding: 1em 0;
    border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-comment-item .children {
    list-style: none;
    padding-left: 2em;
    margin-top: 0.5em;
}

.ef-comment-author {
    font-weight: 600;
    color: var(--ef-energy-green);
    margin-right: 0.5em;
}

.ef-comment-date {
    font-size: 0.8rem;
    color: var(--ef-text-secondary);
}

.ef-comment-body p {
    margin-top: 0.4em;
}

.ef-comment-reply a {
    font-size: 0.82rem;
    color: var(--ef-steel-blue);
}

.ef-comment-form label {
    display: block;
    margin-bottom: 0.3em;
    color: var(--ef-text-secondary);
    font-size: 0.88rem;
}

.ef-comment-form input[type="text"],
.ef-comment-form input[type="email"],
.ef-comment-form input[type="url"],
.ef-comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    background: var(--ef-anthracite-light);
    border: 1px solid var(--ef-border-subtle);
    color: var(--ef-text-primary);
    font-family: var(--ef-font-main);
    font-size: 0.9rem;
    margin-bottom: 0.8em;
    transition: border-color var(--ef-transition-snappy);
}

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

.ef-comment-form input[type="submit"] {
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    border: none;
    padding: 0.6em 2em;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--ef-radius-none);
    transition: box-shadow var(--ef-transition-snappy);
}

.ef-comment-form input[type="submit"]:hover {
    box-shadow: 0 0 0 2px var(--ef-energy-green), 0 0 15px rgba(0, 168, 107, 0.3);
}

/* ========== PAGINATION ========== */
.ef-pagination {
    display: flex;
    justify-content: center;
    gap: 0.3em;
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--ef-border-subtle);
}

.ef-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5em;
    border: 1px solid var(--ef-border-subtle);
    color: var(--ef-text-secondary);
    font-size: 0.88rem;
    font-family: var(--ef-font-mono);
    transition: all var(--ef-transition-snappy);
}

.ef-pagination .page-numbers.current,
.ef-pagination .page-numbers:hover {
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    border-color: var(--ef-energy-green);
}

/* ========== SEARCH FORM ========== */
.ef-search-form {
    display: flex;
    gap: 0;
}

.ef-search-field {
    flex: 1;
    padding: 0.6em 1em;
    background: var(--ef-anthracite-light);
    border: 1px solid var(--ef-border-subtle);
    border-right: none;
    color: var(--ef-text-primary);
    font-size: 0.9rem;
    font-family: var(--ef-font-main);
}

.ef-search-field:focus {
    outline: none;
    border-color: var(--ef-energy-green);
}

.ef-search-submit {
    padding: 0.6em 1.2em;
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    border: 1px solid var(--ef-energy-green);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--ef-radius-none);
    transition: box-shadow var(--ef-transition-snappy);
}

.ef-search-submit:hover {
    box-shadow: 0 0 10px rgba(0, 168, 107, 0.3);
}

/* ========== FOOTER ========== */
.ef-site-footer {
    background: var(--ef-anthracite);
    border-top: 2px solid var(--ef-energy-green);
    margin-top: 3em;
}

.ef-footer-widgets {
    max-width: var(--ef-max-width);
    margin: 0 auto;
    padding: 2.5em 1.5em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.ef-footer-col .widget {
    color: var(--ef-text-secondary);
}

.ef-footer-col .widget-title,
.ef-footer-col .widgettitle {
    font-size: 0.95rem;
    color: var(--ef-energy-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px dashed var(--ef-border-subtle);
    margin-top: 0;
}

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

.ef-footer-col li {
    padding: 0.3em 0;
}

.ef-footer-col a {
    color: var(--ef-text-secondary);
    font-size: 0.88rem;
}

.ef-footer-col a:hover {
    color: var(--ef-energy-green);
}

.ef-footer-bottom {
    text-align: center;
    padding: 1.2em 1.5em;
    border-top: 1px solid var(--ef-border-subtle);
    font-size: 0.82rem;
    color: var(--ef-text-secondary);
}

/* ========== COOKIE CONSENT ========== */
.ef-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--ef-anthracite-light);
    border-top: 2px solid var(--ef-energy-green);
    padding: 1em 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    font-size: 0.88rem;
    color: var(--ef-text-secondary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.ef-cookie-notice.ef-hidden {
    display: none;
}

.ef-cookie-text {
    max-width: 700px;
}

.ef-cookie-accept {
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    border: none;
    padding: 0.5em 1.8em;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--ef-radius-none);
    white-space: nowrap;
    transition: box-shadow var(--ef-transition-snappy);
}

.ef-cookie-accept:hover {
    box-shadow: 0 0 0 2px var(--ef-energy-green), 0 0 15px rgba(0, 168, 107, 0.3);
}

/* ========== 404 PAGE ========== */
.ef-404-wrap {
    text-align: center;
    padding: 3em 1em;
}

.ef-404-title {
    font-size: 5rem;
    color: var(--ef-energy-green);
    font-family: var(--ef-font-mono);
    margin-bottom: 0.2em;
    margin-top: 0;
}

.ef-404-message {
    font-size: 1.2rem;
    color: var(--ef-text-secondary);
    margin-bottom: 1.5em;
}

.ef-404-search {
    max-width: 400px;
    margin: 0 auto 1.5em;
}

.ef-404-home {
    display: inline-block;
    padding: 0.6em 2em;
    background: var(--ef-energy-green);
    color: var(--ef-anthracite);
    font-weight: 600;
    border-radius: var(--ef-radius-none);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ef-404-home:hover {
    color: var(--ef-anthracite);
    box-shadow: 0 0 0 2px var(--ef-energy-green), 0 0 15px rgba(0, 168, 107, 0.3);
}

/* ========== PAGE TEMPLATE ========== */
.ef-page-title {
    font-size: 1.8rem;
    margin-bottom: 1em;
    margin-top: 0;
}

/* ========== BLOG LIST ========== */
.ef-blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.ef-blog-list .ef-card-entry {
    flex-direction: row;
}

.ef-blog-list .ef-card-thumb {
    flex: 0 0 280px;
    aspect-ratio: auto;
}

.ef-blog-list .ef-card-body {
    padding: 1.2em 1.5em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .ef-broken-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ef-broken-grid .ef-card-entry {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .ef-layout-sidebar {
        flex-direction: column;
    }

    .ef-content-area,
    .ef-layout-no-sidebar .ef-content-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ef-sidebar-area {
        flex: 0 0 100%;
        max-width: 100%;
        position: static;
        margin-top: 2em;
    }

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

    .ef-blog-list .ef-card-entry {
        flex-direction: column;
    }

    .ef-blog-list .ef-card-thumb {
        flex: none;
        aspect-ratio: 16 / 9;
    }

    .ef-layout-wide {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .ef-header-inner {
        flex-wrap: wrap;
        gap: 0.5em;
    }

    .ef-nav-toggle {
        display: block;
    }

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

    .ef-primary-nav.ef-nav-open {
        display: block;
    }

    .ef-primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .ef-primary-nav a {
        padding: 0.7em 0;
        border-bottom: 1px solid var(--ef-border-subtle);
    }

    .ef-primary-nav a::after {
        display: none;
    }

    .ef-broken-grid {
        grid-template-columns: 1fr !important;
    }

    .ef-single-title {
        font-size: 1.4rem;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .ef-cookie-notice {
        flex-direction: column;
        gap: 0.8em;
        text-align: center;
    }

    .ef-post-nav {
        flex-direction: column;
    }

    .ef-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }
}

/* ========== ALIGNMENTS (WP) ========== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--ef-text-secondary);
    margin-top: 0.4em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
