/*
Theme Name: RenovatorManual_6348
Theme URI: https://gipsokartonpro.ru
Author: GipsokartonPro
Author URI: https://gipsokartonpro.ru
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: renovatormanual
Tags: blog, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

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

:root {
    --color-bg: #FFFFFF;
    --color-accent: #E67E22;
    --color-accent-hover: #CF6D17;
    --color-secondary-bg: #F5F5F0;
    --color-text: #2C3E50;
    --color-link: #27AE60;
    --color-link-hover: #1E8449;
    --color-border: #E0DDD5;
    --color-white: #FFFFFF;
    --color-light-text: #6B7B8D;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'PT Serif', serif;
    --radius: 4px;
    --shadow-card: 0 2px 8px rgba(44,62,80,0.08);
    --shadow-hover: 0 6px 20px rgba(44,62,80,0.14);
    --max-width: 1200px;
    --transition: 0.3s ease;
}

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

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

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

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

a:hover,
a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

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

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1.2em;
}

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

/* ===== LAYOUT ===== */
.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PROGRESS BAR ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #F39C12);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-bg);
    border-bottom: 3px solid var(--color-accent);
    padding: 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-branding:hover {
    text-decoration: none;
}

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

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

.site-branding:hover .site-title {
    color: var(--color-accent);
}

.site-description {
    font-size: 0.78rem;
    color: var(--color-light-text);
    margin: 2px 0 0;
    font-family: var(--font-body);
}

/* ===== TOOL ICONS BAR ===== */
.tools-bar {
    background: var(--color-secondary-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.tools-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.tool-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition), transform var(--transition);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.tool-icon-link:hover {
    color: var(--color-accent);
    text-decoration: none;
    transform: translateY(-2px);
}

.tool-icon-link svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 8px 0;
    z-index: 200;
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}

.menu-toggle:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: var(--color-secondary-bg);
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--color-light-text);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== HERO / FRONT PAGE ===== */
.hero-section {
    background: linear-gradient(135deg, var(--color-text) 0%, #34495E 100%);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

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

.hero-section h1 {
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-cta {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230,126,34,0.4);
    transform: translateY(-2px);
}

/* ===== FEATURED SLIDER ===== */
.featured-slider-section {
    padding: 40px 0 20px;
}

.section-heading {
    font-size: 1.6rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

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

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--color-white);
}

.slider-overlay h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.slider-overlay h3 a {
    color: var(--color-white);
    text-decoration: none;
}

.slider-overlay h3 a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), box-shadow var(--transition);
    z-index: 10;
}

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

.slider-btn-prev { left: 15px; }
.slider-btn-next { right: 15px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.slider-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* ===== CARDS GRID ===== */
.posts-section {
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

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

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

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.post-card-thumbnail .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-no-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--color-secondary-bg), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-no-thumb svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-light-text);
    stroke-width: 1.5;
    fill: none;
}

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

.post-card-meta {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--color-light-text);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

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

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

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

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

.read-more-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    align-self: flex-start;
}

.read-more-btn:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(230,126,34,0.3);
    transform: translateY(-1px);
}

.read-more-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.read-more-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
}

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

.pagination .page-numbers:hover {
    background: var(--color-secondary-bg);
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

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

.pagination .dots {
    border: none;
    background: none;
}

/* ===== SINGLE POST ===== */
.single-post-header {
    padding: 40px 0 20px;
    text-align: center;
}

.single-post-header h1 {
    font-size: 2.2rem;
    max-width: 800px;
    margin: 0 auto 15px;
}

.single-post-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-light-text);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-thumbnail {
    margin: 20px auto 30px;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.single-post-content h2 {
    margin-top: 2em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-secondary-bg);
}

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

.single-post-content p {
    font-size: 1.05rem;
}

.single-post-content a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.single-post-content a:hover {
    color: var(--color-link-hover);
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 15px 25px;
    margin: 1.5em 0;
    background: var(--color-secondary-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.single-post-content pre {
    background: var(--color-text);
    color: #ECF0F1;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 1.5em 0;
}

.single-post-content code {
    background: var(--color-secondary-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.single-post-content pre code {
    background: none;
    padding: 0;
}

/* Пошаговые списки */
.single-post-content ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.single-post-content ol > li {
    counter-increment: step-counter;
    position: relative;
    padding: 15px 15px 15px 70px;
    margin-bottom: 15px;
    background: var(--color-secondary-bg);
    border-radius: var(--radius);
    min-height: 55px;
    display: flex;
    align-items: center;
}

.single-post-content ol > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Карточки материалов */
.material-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--shadow-card);
}

.material-card h4 {
    color: var(--color-accent);
    margin-bottom: 10px;
}

.material-card .pros {
    color: var(--color-link);
}

.material-card .cons {
    color: #E74C3C;
}

/* Post tags */
.post-tags {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 30px;
}

.post-tags a {
    display: inline-block;
    background: var(--color-secondary-bg);
    color: var(--color-text);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    margin: 3px;
    text-decoration: none;
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    max-width: 780px;
    margin: 0 auto;
}

.post-navigation a {
    display: block;
    padding: 15px;
    background: var(--color-secondary-bg);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.post-navigation a:hover {
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.post-navigation .nav-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.post-navigation .next-post {
    text-align: right;
}

/* ===== PAGE ===== */
.page-header-section {
    background: var(--color-secondary-bg);
    padding: 40px 20px;
    text-align: center;
}

.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== COMMENTS ===== */
.comments-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary-bg);
}

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

.comment-list .comment {
    padding: 20px;
    margin-bottom: 15px;
    background: var(--color-secondary-bg);
    border-radius: var(--radius);
}

.comment-list .comment .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 15px;
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    display: inline;
}

.comment-meta {
    font-size: 0.82rem;
    color: var(--color-light-text);
    margin-bottom: 10px;
}

.comment-content p {
    margin-bottom: 0.8em;
}

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

/* Comment form */
.comment-respond {
    margin-top: 30px;
    padding: 30px;
    background: var(--color-secondary-bg);
    border-radius: 8px;
}

.comment-respond h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

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

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

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

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

.comment-form .submit:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 3px 10px rgba(230,126,34,0.3);
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
}

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

.search-form .search-submit {
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
}

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

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-widget-area {
    font-size: 0.9rem;
}

.footer-widget-area h3,
.footer-widget-area .widget-title {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.footer-widget-area a {
    color: rgba(255,255,255,0.7);
}

.footer-widget-area a:hover {
    color: var(--color-accent);
}

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

.footer-widget-area ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

/* ===== SIDEBAR / WIDGETS ===== */
.widget {
    background: var(--color-secondary-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
}

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

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

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

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 5rem;
    color: var(--color-accent);
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--color-light-text);
    margin-bottom: 30px;
}

/* ===== SEARCH RESULTS ===== */
.search-results-header {
    background: var(--color-secondary-bg);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

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

.screen-reader-text:focus {
    background-color: var(--color-secondary-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--color-text);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    margin-bottom: 15px;
}

.no-results .search-form {
    margin: 20px auto 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-hover);
        padding: 10px;
        z-index: 200;
    }
    
    .nav-menu.toggled {
        display: flex;
    }
    
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    
    .nav-menu li:hover > .sub-menu {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    
    .slider-slide img {
        height: 250px;
    }
    
    .tools-bar-inner {
        gap: 15px;
        flex-wrap: wrap;
    }

    .tool-icon-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        gap: 15px;
    }
    
    .site-title {
        font-size: 1.05rem;
    }
    
    .site-description {
        display: none;
    }
    
    .slider-slide img {
        height: 200px;
    }
    
    .slider-overlay {
        padding: 15px;
    }
    
    .slider-overlay h3 {
        font-size: 1.1rem;
    }
}

/* ===== WordPress ALIGNMENT ===== */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-light-text);
    text-align: center;
    padding-top: 5px;
}

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

.gallery-item {
    margin: 0;
}

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