﻿/*
Theme Name: Delvora
Theme URI: https://example.com
Author: Delvora Team
Description: یه پروژه دانشجویی برای وردپرس
Version: 1.0
Text Domain: delvora
*/

/* === Local Font === */
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e91e8c;
    --primary-dark: #c4167a;
    --text: #333;
    --text-light: #666;
    --bg: #fdf2f8;
    --white: #fff;
    --border: #f0d0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: "Vazirmatn", "Tahoma", "Arial", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === Header & Navigation === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.site-logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.site-logo img {
    max-height: 45px;
}

/* Nav Menu */
.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    border-radius: var(--radius);
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--primary);
    color: var(--white);
}

/* Search */
.header-search {
    display: flex;
    align-items: center;
}

.header-search input[type="search"] {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px;
    font-size: 13px;
    font-family: inherit;
    width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.header-search input[type="search"]:focus {
    border-color: var(--primary);
}

.header-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 7px 14px;
    margin-right: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.2s;
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    padding: 5px;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 16px;
    opacity: 0.9;
}

/* === Posts Grid === */
.posts-section {
    padding: 40px 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Post Card */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 18px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.post-card-category a {
    background: #e8f0fe;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.post-card-body h2 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-card-body h2 a {
    color: var(--text);
}

.post-card-body h2 a:hover {
    color: var(--primary);
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    transition: background 0.2s;
}

.read-more:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* === Single Post === */
.single-post-page {
    padding: 40px 0;
}

.single-post-page .post-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.single-post-page .post-content h1 {
    font-size: 26px;
    margin-bottom: 15px;
}

.single-post-page .post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.single-post-page .post-content img {
    border-radius: var(--radius);
    margin: 15px 0;
    max-height: calc(100vh - 90px);
    width: auto;
}

.single-post-page .post-content p {
    margin-bottom: 15px;
}

.single-post-page .post-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.single-post-page .post-tags a {
    display: inline-block;
    background: #fce4f0;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.post-navigation a {
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text);
}

.post-navigation a:hover {
    color: var(--primary);
}

/* === Archive / Category / Tag === */
.archive-header {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.archive-header h1 {
    font-size: 22px;
}

.archive-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

/* === Search === */
.search-header {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-header h1 {
    font-size: 22px;
}

.no-results {
    grid-column: 1 / -1;
    background: var(--white);
    padding: 60px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.no-results-icon {
    color: var(--border);
    margin-bottom: 20px;
    line-height: 1;
}

.no-results-icon svg {
    width: 72px;
    height: 72px;
}

.no-results h2 {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.8;
}

.no-results p strong {
    color: var(--primary);
}

.no-results-suggestion {
    margin-bottom: 28px !important;
    font-size: 14px !important;
}

/* Search Form (inside no-results & searchform.php) */
.search-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

.search-form input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
    background: var(--white);
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* === Pages === */
.page-content {
    padding: 40px 0;
}

.page-content .content-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.page-content .content-box h1 {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.page-content .content-box p {
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Form Response Messages */
.contact-form-response {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.contact-form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Comments === */
.comments-area {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    padding-right: 30px;
    border-right: 2px solid var(--border);
}

.comment-item {
    margin-bottom: 20px;
}

.comment-body {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-header img {
    border-radius: 50%;
}

.comment-info strong {
    display: block;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-text {
    font-size: 14px;
    line-height: 1.8;
}

.comment-text p {
    margin-bottom: 8px;
}

.comment-awaiting {
    color: #e6a700;
    font-size: 13px;
}

.comment-actions {
    margin-top: 10px;
}

.comment-actions a {
    font-size: 13px;
    color: var(--primary);
}

.comment-actions a:hover {
    text-decoration: underline;
}

.comments-closed {
    color: var(--text-light);
    font-style: italic;
}

/* Comment Form */
.comment-reply-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.comment-form .form-submit input {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit input:hover {
    background: var(--primary-dark);
}

.comment-notes {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* === Footer === */
.site-footer {
    background: #4a102e;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
}

.site-footer a {
    color: var(--primary);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover {
    color: var(--primary);
}

/* === 404 Page === */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 80px;
    color: var(--primary);
}

.error-page p {
    font-size: 18px;
    color: var(--text-light);
    margin: 15px 0 25px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }

    .header-search {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 10px;
    }

    .header-search.active {
        display: flex;
    }

    .header-search input[type="search"] {
        flex: 1;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .single-post-page .post-content,
    .page-content .content-box {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

input#wp-comment-cookies-consent, input#wp-comment-cookies-consent + label {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-bottom: 18px;
}

input#wp-comment-cookies-consent + label {
    position: relative;
    top: 2px;
}

.text-center {
    text-align: center;
}

p.comment-form-author, p.comment-form-email {
    max-width: 100%;
    width: 49%;
    display: inline-block;
}

p.comment-form-author {
    margin-left: 15px;
}

@media (min-width: 800px) and (max-width: 1100px) {
    p.comment-form-author {
        margin-left: 10px;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    p.comment-form-author {
        margin-left: 5px;
    }
}

@media (max-width: 599px) {
    p.comment-form-author, p.comment-form-email {
        max-width: 100%;
        width: 100%;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 10px !important;
}

body:not(.home) .site-header + section, body:not(.home)  .site-header + div {
    min-height: calc(100vh - 170px);
}

.hero-section + .posts-section {
    min-height: 523px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover {
    color: var(--primary);
}

/* === 404 Page === */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 80px;
    color: var(--primary);
}

.error-page p {
    font-size: 18px;
    color: var(--text-light);
    margin: 15px 0 25px;
}

.d-none {
    display: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }

    .header-search {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 10px;
    }
    .search-card-wrapper {
        display: none !important;
    }
    .main-nav.active + .search-card-wrapper {
        display: flex !important;
        width: 100%;
    }

    .wrapper-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .wrapper-toggle .header-cart {
        display: inline-block;
        margin-left: 15px;
    }

    .header-search.active {
        display: flex;
    }

    .header-search input[type="search"] {
        flex: 1;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .single-post-page .post-content,
    .page-content .content-box {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

input#wp-comment-cookies-consent, input#wp-comment-cookies-consent + label {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-bottom: 18px;
}

input#wp-comment-cookies-consent + label {
    position: relative;
    top: 2px;
}

.text-center {
    text-align: center;
}

p.comment-form-author, p.comment-form-email {
    max-width: 100%;
    width: 49%;
    display: inline-block;
}

p.comment-form-author {
    margin-left: 15px;
}

@media (min-width: 800px) and (max-width: 1100px) {
    p.comment-form-author {
        margin-left: 10px;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    p.comment-form-author {
        margin-left: 5px;
    }
}

@media (max-width: 599px) {
    p.comment-form-author, p.comment-form-email {
        max-width: 100%;
        width: 100%;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 10px !important;
}

body:not(.home) .site-header + section, body:not(.home)  .site-header + div {
    min-height: calc(100vh - 170px);
}

.hero-section + .posts-section {
    min-height: 523px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover {
    color: var(--primary);
}

/* === 404 Page === */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 80px;
    color: var(--primary);
}

.error-page p {
    font-size: 18px;
    color: var(--text-light);
    margin: 15px 0 25px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }

    .header-search {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 10px;
    }

    .header-search.active {
        display: flex;
    }

    .header-search input[type="search"] {
        flex: 1;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .single-post-page .post-content,
    .page-content .content-box {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-card-img {
        height: 275px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

input#wp-comment-cookies-consent, input#wp-comment-cookies-consent + label {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-bottom: 18px;
}

input#wp-comment-cookies-consent + label {
    position: relative;
    top: 2px;
}

.text-center {
    text-align: center;
}

p.comment-form-author, p.comment-form-email {
    max-width: 100%;
    width: 49%;
    display: inline-block;
}

p.comment-form-author {
    margin-left: 15px;
}

@media (min-width: 800px) and (max-width: 1100px) {
    p.comment-form-author {
        margin-left: 10px;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    p.comment-form-author {
        margin-left: 5px;
    }
}

@media (max-width: 599px) {
    p.comment-form-author, p.comment-form-email {
        max-width: 100%;
        width: 100%;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 10px !important;
}

body:not(.home) .site-header + section, body:not(.home)  .site-header + div {
    min-height: calc(100vh - 170px);
}

.hero-section + .posts-section {
    min-height: 523px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover {
    color: var(--primary);
}

/* === 404 Page === */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 80px;
    color: var(--primary);
}

.error-page p {
    font-size: 18px;
    color: var(--text-light);
    margin: 15px 0 25px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }

    .header-search {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 10px;
    }

    .header-search.active {
        display: flex;
    }

    .header-search input[type="search"] {
        flex: 1;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .single-post-page .post-content,
    .page-content .content-box {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

input#wp-comment-cookies-consent, input#wp-comment-cookies-consent + label {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-bottom: 18px;
}

input#wp-comment-cookies-consent + label {
    position: relative;
    top: 2px;
}

.text-center {
    text-align: center;
}

p.comment-form-author, p.comment-form-email {
    max-width: 100%;
    width: 49%;
    display: inline-block;
}

p.comment-form-author {
    margin-left: 15px;
}

@media (min-width: 800px) and (max-width: 1100px) {
    p.comment-form-author {
        margin-left: 10px;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    p.comment-form-author {
        margin-left: 5px;
    }
}

@media (max-width: 599px) {
    p.comment-form-author, p.comment-form-email {
        max-width: 100%;
        width: 100%;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 10px !important;
}

body:not(.home) .site-header + section, body:not(.home)  .site-header + div {
    min-height: calc(100vh - 170px);
}

.hero-section + .posts-section {
    min-height: 523px;
}

