/*
Theme Name: UrbanEstatesReview
Theme URI: https://lesportenimages.com
Author: UrbanEstatesReview Team
Author URI: https://lesportenimages.com
Description: Блог о застройщиках России: обзоры компаний, анализ новостроек в регионах, новости рынка недвижимости. Рейтинги, отзывы и советы по выбору жилья для покупателей и инвесторов.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urbanestatesreview
Tags: blog, real-estate, russian, responsive
*/

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

:root {
    --color-navy: #1B2A4C;
    --color-terracotta: #C44536;
    --color-terracotta-dark: #A63828;
    --color-white: #FFFFFF;
    --color-text: #2C3E50;
    --color-light-gray: #F4F6F9;
    --color-mid-gray: #8896A7;
    --color-border: #DDE2E8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
    --radius: 6px;
    --shadow-card: 0 2px 8px rgba(27,42,76,0.08);
    --shadow-card-hover: 0 8px 24px rgba(27,42,76,0.15);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 1.9rem; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
h4 { font-size: 1.25rem; margin-bottom: 0.4em; }

p {
    margin-bottom: 1.2em;
}

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

blockquote {
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-terracotta);
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-navy);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

table th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 0.8em 1em;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
}

table td {
    padding: 0.7em 1em;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

table tr:nth-child(even) {
    background: var(--color-light-gray);
}

table tr:hover {
    background: #e8ecf2;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 0;
    position: relative;
    z-index: 100;
}

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

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

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-white);
    text-decoration: none;
}

.site-branding a:hover {
    color: var(--color-white);
    opacity: 0.9;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-logo-default svg {
    width: 44px;
    height: 44px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

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

.site-title a:hover {
    color: #ddd;
}

.site-description {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    font-family: var(--font-body);
}

/* Navigation */
.main-navigation {
    font-family: var(--font-heading);
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.9rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

/* Submenu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    padding: 0.5rem 0;
    z-index: 200;
    flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    color: var(--color-text);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 0;
}

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

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    color: var(--color-white);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    border-color: rgba(255,255,255,0.7);
}

/* Header Search */
.header-search {
    flex-shrink: 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
}

.header-search .search-field {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--color-white);
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    width: 180px;
    font-family: var(--font-body);
    outline: none;
    transition: all var(--transition);
}

.header-search .search-field::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search .search-field:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    width: 220px;
}

.header-search .search-submit {
    background: var(--color-terracotta);
    border: 1px solid var(--color-terracotta);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-white);
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--transition);
}

.header-search .search-submit:hover {
    background: var(--color-terracotta-dark);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-navy);
    max-height: 520px;
}

.hero-slider .slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider .slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background: linear-gradient(135deg, var(--color-navy) 0%, #2a3d66 100%);
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 700px;
}

.hero-slider .slide-content h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 0.6em;
    font-weight: 800;
}

.hero-slider .slide-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

.hero-slider .slide-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-size: cover;
    background-position: center;
}

.slider-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.slider-nav button.active {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.65em 1.5em;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196,69,54,0.35);
}

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

.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27,42,76,0.25);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
}

.btn-white:hover {
    background: var(--color-light-gray);
    transform: translateY(-2px);
    color: var(--color-navy);
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5em;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-terracotta);
    border-radius: 2px;
}

.section-title p {
    color: var(--color-mid-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0.8em auto 0;
}

/* ===== RATING STARS ===== */
.rating-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.rating-stars .star {
    width: 18px;
    height: 18px;
    color: #F0C040;
}

.rating-stars .star.empty {
    color: #D0D5DD;
}

.rating-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-mid-gray);
    margin-left: 0.4em;
}

/* ===== POST CARDS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--color-light-gray);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,42,76,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.post-card:hover .post-card-image .overlay {
    opacity: 1;
}

.post-card-image .overlay .rating-stars .star {
    color: #F0C040;
}

.post-card-image .category-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.2em 0.7em;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}

.post-card-meta .meta-date,
.post-card-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--color-navy);
    transition: color var(--transition);
}

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

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.post-card-excerpt a {
    color: var(--color-terracotta);
    text-decoration: underline;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.post-card-footer .read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card-footer .read-more:hover {
    color: var(--color-terracotta-dark);
    gap: 0.5rem;
}

.post-card-footer .comments-count {
    font-size: 0.78rem;
    color: var(--color-mid-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* No thumbnail placeholder */
.post-card-image .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #dde2e8 100%);
}

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

/* ===== GEO CARDS (REGIONS) ===== */
.geo-regions {
    padding: 3.5rem 0;
    background: var(--color-light-gray);
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
}

.geo-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    cursor: default;
}

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

.geo-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    color: var(--color-navy);
}

.geo-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3em;
}

.geo-card p {
    font-size: 0.82rem;
    color: var(--color-mid-gray);
    margin: 0;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    padding: 3.5rem 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.comparison-table {
    min-width: 700px;
}

.comparison-table th {
    font-size: 0.85rem;
    white-space: nowrap;
}

.comparison-table td {
    font-size: 0.88rem;
}

.comparison-table .highlight-row {
    background: rgba(196,69,54,0.05);
}

/* ===== LATEST POSTS SECTION ===== */
.latest-posts-section {
    padding: 3.5rem 0;
}

/* ===== SINGLE POST ===== */
.single-post-header {
    padding: 3rem 0 2rem;
    background: var(--color-light-gray);
}

.single-post-header .post-category {
    display: inline-block;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.25em 0.8em;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.single-post-header h1 {
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--color-mid-gray);
    margin-top: 1rem;
    font-family: var(--font-heading);
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Builder Rating Widget */
.builder-rating-widget {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin: 2rem 0;
}

.builder-rating-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.rating-row:last-child {
    border-bottom: none;
}

.rating-row .label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text);
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    margin-left: 1rem;
    max-width: 200px;
}

.rating-bar .bar-bg {
    flex: 1;
    height: 8px;
    background: var(--color-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .bar-fill {
    height: 100%;
    background: var(--color-terracotta);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rating-bar .bar-value {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-navy);
    min-width: 28px;
    text-align: right;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.post-content h2 {
    margin-top: 2em;
}

.post-content h3 {
    margin-top: 1.5em;
}

.post-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.post-content a {
    text-decoration: underline;
}

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

.post-navigation a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-navigation a:hover {
    color: var(--color-terracotta);
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    color: var(--color-mid-gray);
    display: block;
    margin-bottom: 0.2rem;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.post-tags a {
    background: var(--color-light-gray);
    color: var(--color-text);
    padding: 0.3em 0.8em;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

/* ===== COMMENTS ===== */
.comments-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.comments-area h2 {
    font-size: 1.4rem;
    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 .comment:last-child {
    border-bottom: none;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.comment-author-info .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author-info .fn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-navy);
}

.comment-metadata {
    font-size: 0.78rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.5rem;
}

.comment-content p {
    font-size: 0.92rem;
}

.comment-reply-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

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

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comment-respond h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.comment-form label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.3rem;
}

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

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

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

.comment-form .form-submit input {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.comment-form .form-submit input:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196,69,54,0.35);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination .page-numbers:hover {
    background: var(--color-light-gray);
    border-color: var(--color-navy);
}

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

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===== SIDEBAR / WIDGETS ===== */
.sidebar .widget {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.3rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-terracotta);
}

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

.sidebar .widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.sidebar .widget ul li a {
    color: var(--color-text);
    font-size: 0.9rem;
}

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

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 0;
}

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

.footer-widgets .widget {
    color: rgba(255,255,255,0.75);
}

.footer-widgets .widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-terracotta);
}

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

.footer-widgets .widget ul li {
    padding: 0.3rem 0;
}

.footer-widgets .widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.5);
}

/* ===== SEARCH RESULTS ===== */
.search-results-header {
    padding: 2.5rem 0 1.5rem;
    background: var(--color-light-gray);
    text-align: center;
}

.search-results-header h1 {
    font-size: 1.6rem;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 .error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-light-gray);
    line-height: 1;
    margin-bottom: 0.2em;
}

.error-404 h1 {
    margin-bottom: 0.5em;
}

.error-404 p {
    color: var(--color-mid-gray);
    margin-bottom: 2em;
}

/* ===== PAGE ===== */
.page-header-section {
    padding: 2.5rem 0;
    background: var(--color-light-gray);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

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

.search-form .search-field {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    outline: none;
    background: var(--color-white);
}

.search-form .search-field:focus {
    border-color: var(--color-navy);
}

.search-form .search-submit {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form .search-submit:hover {
    background: var(--color-terracotta-dark);
}

/* ===== SCREEN READER ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .header-top {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.2);
        border-radius: var(--radius);
        padding: 0.5rem 0;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        padding-left: 1rem;
    }

    .header-search {
        width: 100%;
        order: 10;
    }

    .header-search .search-field {
        width: 100%;
    }

    .hero-slider .slide {
        min-height: 320px;
    }

    .hero-slider .slide-content h2 {
        font-size: 1.6rem;
    }

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

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

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

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .slider-arrow.prev { left: 0.5rem; }
    .slider-arrow.next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .geo-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1rem;
    }

    .hero-slider .slide-content h2 {
        font-size: 1.3rem;
    }

    .hero-slider .slide-content p {
        font-size: 0.95rem;
    }
}

/* ===== LAZY LOADING ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* For browsers with native lazy loading */
img:not([loading]) {
    opacity: 1;
}

/* ===== 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%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--color-mid-gray);
    text-align: center;
    padding-top: 0.5em;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5em 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius);
}
