/*
Theme Name: dds_elijahsaldana.com
Theme URI: https://elijahsaldana.com/
Author: Блинов Виктор
Author URI: https://elijahsaldana.com/
Description: Тема для информационного сайта о выборе жилья в России. Обзоры районов, цены, риски и практические советы по недвижимости.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_elijah
*/

/* ============= Reset / base ============= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2E4057;
    background: #F5F7FA;
}

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

a {
    color: #B84A2C;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
a:hover { color: #8F3A1F; }

p { margin: 0 0 1em; }

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

h1, h2, h3, h4, h5, h6 {
    color: #2E4057;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2.05rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* Accent underline for article H1/H2 — 40% width terracotta */
.entry-title,
.section-title,
.article-content h2,
.article-content h1 {
    position: relative;
    padding-bottom: 0.45em;
}
.entry-title::after,
.section-title::after,
.article-content h2::after,
.article-content h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 2px;
    background: #B84A2C;
}

/* ============= Layout ============= */
.shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.site-main {
    padding: 36px 0 56px;
    flex: 1;
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.layout--has-sidebar { grid-template-columns: 67% 27%; gap: 6%; }
.layout--wide .layout-content { width: 85%; max-width: none; margin: 0 auto; }
.layout-content { min-width: 0; }

@media (max-width: 960px) {
    .layout--has-sidebar { grid-template-columns: 1fr; gap: 32px; }
    .layout--wide .layout-content { width: 100%; }
}

/* ============= Header ============= */
.site-header {
    background: #FFFFFF;
    border-bottom: 2px solid #B84A2C;
    position: relative;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 0 1 auto;
    min-width: 0;
}
.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2E4057;
    line-height: 1.2;
    margin: 0;
}
.brand-desc {
    font-size: 0.82rem;
    color: #7F8C6E;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: #2E4057;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color .18s, color .18s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: #E2E6EC;
    color: #B84A2C;
}

/* Burger */
.nav-toggle[hidden] { display: none !important; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid #2E4057;
    border-radius: 6px;
    padding: 8px 12px;
    color: #2E4057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1px solid #E2E6EC;
        box-shadow: 0 8px 24px rgba(46, 64, 87, 0.08);
        display: none;
        z-index: 50;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
    .primary-nav li { width: 100%; }
    .primary-nav a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
    }
}

/* ============= Breadcrumbs ============= */
.crumbs {
    font-size: 0.85rem;
    color: #7F8C6E;
    padding: 14px 0 0;
    margin: 0 0 18px;
}
.crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
    content: "›";
    margin: 0 8px;
    color: #B84A2C;
}
.crumbs a {
    color: #2E4057;
    text-decoration: none;
}
.crumbs a:hover { color: #B84A2C; text-decoration: underline; }
.crumbs li[aria-current="page"] { color: #7F8C6E; }

/* ============= Page header ============= */
.page-head {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 26px 28px;
    margin: 0 0 28px;
    box-shadow: 0 1px 2px rgba(46, 64, 87, 0.05);
}
.page-head__title { margin: 0; }
.page-head__sub {
    margin: 10px 0 0;
    color: #7F8C6E;
    font-size: 0.95rem;
}

/* ============= Cards / archive grid ============= */
.feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 720px) { .feed { grid-template-columns: 1fr; } }

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.06);
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 64, 87, 0.10);
}

/* Vertical card thumb — aspect-ratio on img (per A10) */
.card-thumb {
    display: block;
    background: #EAECEE;
    line-height: 0;
}
.card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.card-thumb:hover img { transform: scale(1.03); }

/* "Corner of experience" — small triangle with count */
.card-corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 64px 64px 0;
    border-color: transparent #B84A2C transparent transparent;
    pointer-events: none;
}
.card-corner__num {
    position: absolute;
    top: 8px;
    right: -56px;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    width: 48px;
    transform: rotate(45deg);
    transform-origin: center;
    line-height: 1.05;
    pointer-events: none;
}

.card-body {
    flex: 1;
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-meta {
    font-size: 0.78rem;
    color: #7F8C6E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.card-meta a { color: #7F8C6E; text-decoration: none; }
.card-meta a:hover { color: #B84A2C; }

.card-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.card-title a { color: #2E4057; text-decoration: none; }
.card-title a:hover { color: #B84A2C; }

.card-excerpt { color: #2E4057; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
    padding-top: 12px;
}
.card-more {
    display: inline-block;
    padding: 8px 14px;
    background: #B84A2C;
    color: #FFFFFF !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color .18s;
}
.card-more:hover { background: #8F3A1F; }

/* ============= Sidebar ============= */
.sidebar { min-width: 0; }
.widget {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 0 0 22px;
    box-shadow: 0 1px 2px rgba(46, 64, 87, 0.05);
}
.widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2E4057;
    padding-bottom: 8px;
    border-bottom: 2px solid #B84A2C;
    display: inline-block;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px solid #EAECEE;
    font-size: 0.93rem;
}
.widget li:last-child { border-bottom: 0; }
.widget li a { color: #2E4057; text-decoration: none; }
.widget li a:hover { color: #B84A2C; }

/* ============= Article (single / page) ============= */
.article {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px 36px;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.06);
}
.article-meta {
    color: #7F8C6E;
    font-size: 0.85rem;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.article-meta a { color: #7F8C6E; text-decoration: none; }
.article-meta a:hover { color: #B84A2C; }
.article-thumb {
    margin: 0 0 24px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}
.article-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}
.article-content { font-size: 1.02rem; }
.article-content p { margin: 0 0 1em; }
.article-content img {
    border-radius: 6px;
    margin: 1em 0;
    display: block;
}
.article-content blockquote {
    background: #FEFAF5;
    border-left: 4px solid #7F8C6E;
    margin: 1.4em 0;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    color: #2E4057;
    font-style: normal;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content code {
    background: #EAECEE;
    color: #2E4057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}
.article-content pre {
    background: #2E4057;
    color: #F5F7FA;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}
.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tables in articles */
.article-content table,
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #FFFFFF;
    font-size: 0.95rem;
}
.article-content table th,
.article-content table td,
.compare-table th,
.compare-table td {
    border: 1px solid #E2E6EC;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.article-content table th,
.compare-table th {
    background: #2E4057;
    color: #F5F7FA;
    font-weight: 700;
}
.article-content table tbody tr:nth-child(even),
.compare-table tbody tr:nth-child(even) {
    background: #F5F7FA;
}

/* Tag list */
.taglist {
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.taglist a {
    display: inline-block;
    padding: 5px 14px;
    background: #EAECEE;
    color: #2E4057;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color .18s, color .18s;
}
.taglist a:hover { background: #B84A2C; color: #FFFFFF; }

/* ============= Special blocks (theme-spec colors) ============= */
.callout {
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1.2em 0;
}
.callout--risk {
    background: #F9EDEA;
    color: #962A1A;
    border-left: 4px solid #B84A2C;
}
.callout--tip {
    background: #EAF4F0;
    color: #1E4D4A;
    border-left: 4px solid #1E4D4A;
}
.callout p:last-child { margin-bottom: 0; }

/* ============= Front page ============= */
.fp-hero {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px 44px;
    margin: 0 0 28px;
    border-left: 4px solid #B84A2C;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.05);
}
.fp-hero h1 { margin-top: 0; }
.fp-hero p { font-size: 1.05rem; color: #2E4057; max-width: 760px; }
.fp-hero .btn-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s;
    border: 1.5px solid transparent;
}
.btn--primary {
    background: #B84A2C;
    color: #FFFFFF;
}
.btn--primary:hover { background: #8F3A1F; color: #FFFFFF; }
.btn--ghost {
    border-color: #2E4057;
    background: transparent;
    color: #2E4057;
}
.btn--ghost:hover { background: #E2E6EC; color: #2E4057; }

.fp-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px 36px;
    margin: 0 0 28px;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.05);
}
.fp-section h2 { margin-top: 0; }
.fp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 22px 0 0;
}
.fp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 22px 0 0;
}
@media (max-width: 760px) {
    .fp-grid-3, .fp-grid-2 { grid-template-columns: 1fr; }
}

.tile {
    background: #F5F7FA;
    border-radius: 6px;
    padding: 22px 22px;
    border-top: 3px solid #B84A2C;
}
.tile h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #2E4057;
}
.tile p { margin: 0; color: #2E4057; font-size: 0.95rem; }

/* Step list */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li {
    counter-increment: step;
    background: #F5F7FA;
    border-radius: 6px;
    padding: 18px 22px 18px 64px;
    position: relative;
    border-left: 3px solid #7F8C6E;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: #B84A2C;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.steps li strong {
    display: block;
    color: #2E4057;
    margin-bottom: 4px;
    font-size: 1rem;
}
.steps li p { margin: 0; font-size: 0.92rem; }

/* Price bar visualization (decorative) */
.price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #EAECEE;
    font-size: 0.95rem;
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { flex: 0 0 38%; color: #2E4057; font-weight: 600; }
.price-row__bar {
    flex: 1;
    height: 10px;
    background: #EAECEE;
    border-radius: 5px;
    overflow: hidden;
}
.price-row__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2E4057, #B84A2C);
}
.price-row__num {
    flex: 0 0 90px;
    text-align: right;
    color: #2E4057;
    font-weight: 700;
}

/* Stats row */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 22px 0 0;
}
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.stats div {
    background: #F5F7FA;
    border-radius: 6px;
    padding: 18px 18px;
    text-align: center;
}
.stats strong {
    display: block;
    font-size: 1.6rem;
    color: #B84A2C;
    margin-bottom: 4px;
}
.stats span { font-size: 0.85rem; color: #7F8C6E; }

/* Latest posts on front-page (horizontal cards per A10) */
.fp-latest { margin: 0 0 28px; }
.fp-latest h2 { margin-top: 0; }

.row-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.05);
    margin: 0 0 18px;
    flex-direction: row;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 64, 87, 0.10);
}
/* Horizontal thumb — position:absolute pattern (per A10) */
.row-card .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #EAECEE;
}
.row-card .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.row-card .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.row-card .card-body { padding: 22px 26px; }

@media (max-width: 600px) {
    .row-card { flex-direction: column; }
    .row-card .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .row-card .card-thumb-wrap a {
        position: static;
    }
    .row-card .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============= Search / 404 ============= */
.search-form {
    display: flex;
    gap: 0;
    margin: 0;
    align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #E2E6EC;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.95rem;
    color: #2E4057;
    background: #FFFFFF;
    min-width: 0;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #2E4057;
}
.search-form button {
    padding: 11px 22px;
    background: #B84A2C;
    color: #FFFFFF;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}
.search-form button:hover { background: #8F3A1F; }

.notfound {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.06);
}
.notfound h1 {
    font-size: 6rem;
    color: #B84A2C;
    margin: 0;
    line-height: 1;
}
.notfound h2 { margin-top: 8px; }
.notfound p { max-width: 520px; margin: 14px auto; color: #2E4057; }
.notfound .search-form {
    max-width: 460px;
    margin: 24px auto;
}

/* ============= Pagination ============= */
.pagination {
    margin: 32px 0 0;
    display: flex;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0 3px;
    background: #FFFFFF;
    color: #2E4057;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid #E2E6EC;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all .18s;
}
.pagination .page-numbers:hover {
    background: #E2E6EC;
    color: #B84A2C;
    border-color: #2E4057;
}
.pagination .page-numbers.current {
    background: #B84A2C;
    color: #FFFFFF;
    border-color: #B84A2C;
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ============= Comments ============= */
.comments-area {
    margin: 36px 0 0;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(46, 64, 87, 0.05);
}
.comments-area h2,
.comments-area h3 { margin-top: 0; }

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.comment-list .comment {
    padding: 16px 18px;
    background: #F5F7FA;
    border-radius: 6px;
    margin: 0 0 12px;
    border-left: 3px solid #7F8C6E;
}
.comment-list .children {
    list-style: none;
    margin: 12px 0 0 22px;
    padding: 0;
}
.comment-meta {
    font-size: 0.82rem;
    color: #7F8C6E;
    margin: 0 0 6px;
}
.comment-meta strong { color: #2E4057; }
.comment-body p { margin: 0 0 0.5em; }
.comment-body p:last-child { margin-bottom: 0; }

.comment-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: #2E4057;
    font-weight: 600;
    margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E2E6EC;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2E4057;
    background: #FFFFFF;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2E4057;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit {
    background: #B84A2C;
    color: #FFFFFF;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    justify-self: start;
}
.comment-form .submit:hover { background: #8F3A1F; }

/* ============= Footer ============= */
.site-footer {
    background: #2E4057;
    color: #F5F7FA;
    padding: 40px 0 20px;
    margin-top: auto;
}
.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
    color: #F5F7FA;
    border-bottom-color: #B84A2C;
}
.site-footer a { color: #F5F7FA; }
.site-footer a:hover { color: #B84A2C; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.footer-widget .widget-title {
    background: transparent;
    color: #F5F7FA;
    margin-bottom: 14px;
}
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(245, 247, 250, 0.10);
    font-size: 0.92rem;
}
.footer-widget li:last-child { border-bottom: 0; }
.footer-widget li a { color: #F5F7FA; text-decoration: none; }
.footer-widget li a:hover { color: #B84A2C; }
.footer-widget p { color: #F5F7FA; font-size: 0.92rem; margin: 0 0 0.7em; }

.copyright {
    border-top: 1px solid rgba(245, 247, 250, 0.10);
    padding-top: 18px;
    text-align: center;
    color: #7F8C6E;
    font-size: 0.85rem;
}

/* ============= Cookie banner ============= */
/* IMPORTANT: hidden rule placed BEFORE the main banner styles per A11 */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #2E4057;
    color: #F5F7FA;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.20);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 200;
    font-size: 0.92rem;
    border-left: 4px solid #B84A2C;
}
.cookie-banner__text { flex: 1; line-height: 1.4; }
.cookie-banner__text a { color: #F5F7FA; text-decoration: underline; }
.cookie-banner__btn {
    flex: 0 0 auto;
    background: #B84A2C;
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
}
.cookie-banner__btn:hover { background: #8F3A1F; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
    .cookie-banner__btn { width: 100%; }
}

/* ============= Utility ============= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: 100%; }
.alignfull { width: 100%; }

.wp-caption {
    max-width: 100%;
    margin: 0 0 1em;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: #7F8C6E;
    text-align: center;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .article { padding: 22px 20px; }
    .fp-section { padding: 22px 20px; }
    .fp-hero { padding: 26px 22px; }
    .page-head { padding: 20px 22px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
}
