/*
Theme Name: NW3
Version: 2.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Serif', Georgia, serif;
    color: #262626;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
}

/* Layout */
.relative_width {
    width: 990px;
    margin: 0 auto;
    padding: 0 5px;
}

.main {
    width: 980px;
    margin: 0 auto;
}

#primary {
    width: 623px;
    float: left;
}

#sidebar {
    width: 300px;
    float: right;
}

/* Header */
.main_nav {
    height: 67px;
    margin: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    display: block;
    float: left;
    width: 207px;
    height: 64px;
    background: url('images/bloger51_logo.png') no-repeat -270px 0;
    text-indent: -9999px;
}

.logo:hover {
    background-position: -520px 0;
}

/* Search */
.search_b {
    float: right;
    margin-top: 12px;
}

.search_b input[type="search"] {
    float: left;
    height: 30px;
    padding: 0 0.5em;
    margin-right: 0.5em;
    border: 1px solid #539db3;
    border-bottom: 1px solid #64bed8;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.31);
}

.search_b input[type="submit"] {
    width: 4em;
    height: 32px;
    background: #2885a0 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUFJREFUeNqslM1qwlAQhW9D3YjgslIp4k/7KsXuS2uXBReC72B2LkV8j1KQtC76AiX6BP3DlbT2DbS9npETkZhJUurAx5A75x5xMhNjrTUJOOAS3IEZ+GW+B1esb/RJZqdgYuND6mdpDCvgi5emoAXKIMtam+eWulqcofwNn+IROAJd8A4utnR58ETdWO5phjcUfYACeOaz9G8Q0ub5QxINzfCRgibIgD7w2NMofYv6oWY4p+AkxRQIJepnB+tG7kZwmAFLkxwO+BGtowi+mQsmXRSDe5rhmPk8pWGd2dd6cs2evHLu4vqXoy72LXe2NsHjJc3sgTpfm8NOxHq9gFtwDORFFjlSb6x/gmrUpoTNetyApF0uR+1y2Mzl+SF7OuRXZsEszw3Wd742mtmf2atZYOjuy0wIVs/lYLrmn7ESYAAs2vEpirFTXwAAAABJRU5ErkJggg==') 50% no-repeat;
    color: white;
    border: 0;
    border-bottom: 2px solid #1b596b;
    border-radius: 3px;
    cursor: pointer;
    text-indent: -9999px;
}

/* Posts */
.post-cat {
    margin-bottom: 3.5em;
    padding-bottom: 0.45em;
    position: relative;
}

.post-cat h1 {
    font-size: 40px;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 0 0.5em;
    padding-right: 70px;
}

.post-cat h1 a {
    text-decoration: none;
    color: #262626;
}

.post-cat h1 a:hover {
    color: #318da8;
}

.meta {
    color: #787878;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.meta .author {
    color: #318da8;
    text-decoration: none;
}

.meta .date {
    color: #787878;
}

.meta .views {
    padding-left: 20px;
    background: url('images/views.png') no-repeat left center;
}

/* Comments link */
.comments-link {
    position: absolute;
    right: 0;
    top: 40px;
}

.comments-link a {
    display: block;
    width: 43px;
    height: 36px;
    background: #eee url('images/comment-bubble_2.png') no-repeat 0 0;
    color: #666;
    font-size: 13px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
}

/* Content */
.entry {
    font-size: 15px;
    line-height: 1.6;
}

.entry p {
    margin: 0 0 1em;
}

.entry img {
    max-width: 100%;
    height: auto;
}

/* Tags */
.tags {
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tags a {
    color: #318da8;
    text-decoration: none;
    margin-right: 0.5em;
}

/* Work fields */
.work-fields {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.work-fields p {
    margin: 0.5em 0;
}

/* Forum */
.forum-breadcrumb {
    margin: 0 0 1em;
    padding: 0.5em 0;
    color: #999;
}

.forum-breadcrumb a {
    color: #318da8;
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    text-decoration: underline;
}

/* Comments */
.commentlist {
    list-style: none;
    margin: 2em 0;
}

.comment {
    margin: 1em 0;
    padding: 1em;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.comment-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 1em;
}

/* Comment form */
#respond {
    margin: 2em 0;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #ddd;
}

#respond input[type="submit"] {
    padding: 0.5em 2em;
    background: #318da8;
    color: #fff;
    border: 0;
    border-bottom: 2px solid #1f6a89;
    border-radius: 3px;
    cursor: pointer;
}

/* Sidebar */
.widget {
    margin: 0 0 2em;
}

.widget h3 {
    font-size: 18px;
    margin: 0 0 1em;
    padding: 0 0 0.5em;
    border-bottom: 1px solid #eee;
}

/* Footer */
footer {
    clear: both;
    padding: 2em 0;
    margin-top: 3em;
    border-top: 1px solid #ccc;
    text-align: center;
    color: #999;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    clear: both;
    padding: 2em 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 2px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination .page-numbers:hover {
    background: #318da8;
    color: #fff;
    border-color: #318da8;
}

.pagination .page-numbers.current {
    background: #318da8;
    color: #fff;
    border-color: #318da8;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .relative_width,
    .main,
    #primary,
    #sidebar {
        width: 100%;
        float: none;
    }
    
    .search_b {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .search_b input[type="search"] {
        float: none;
        width: 70%;
    }
    
    .post-cat h1 {
        padding-right: 0;
    }
    
    .comments-link {
        position: static;
        margin-top: 10px;
    }
    
    .comments-link a {
        position: static;
        display: inline-block;
    }
}
/* Добавьте эти стили в конец вашего style.css */

/* ========== ФУТЕР ========== */
.site-footer {
    clear: both;
    background: #f5f5f5;
    border-top: 1px solid #ccc;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    width: 990px;
    margin: 0 auto;
    padding: 0 5px;
    position: relative;
}

.copyright {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.copyright span {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

.footer-text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 20px;
}

.counters {
    text-align: right;
    margin-bottom: 10px;
}

.counters img {
    vertical-align: middle;
}

.back-to-top {
    position: absolute;
    right: 5px;
    top: 0;
}

.back-to-top a {
    display: block;
    padding: 8px 15px;
    background: #969696;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.back-to-top a:hover {
    background: #318da8;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    clear: both;
    padding: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 35px;
    height: 35px;
    margin: 0 2px;
    padding: 0 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    line-height: 35px;
    text-align: center;
    text-decoration: none;
}

.pagination .page-numbers:hover {
    background: #318da8;
    border-color: #318da8;
    color: #fff;
}

.pagination .page-numbers.current {
    background: #318da8;
    border-color: #318da8;
    color: #fff;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

/* Для wp-pagenavi */
.wp-pagenavi {
    clear: both;
    padding: 30px 0;
    text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-block;
    min-width: 35px;
    height: 35px;
    margin: 0 2px;
    padding: 0 5px;
    background: #f5f5f5;
    border: 1px solid #ddd !important;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    line-height: 35px;
    text-align: center;
    text-decoration: none;
}

.wp-pagenavi a:hover {
    background: #318da8;
    border-color: #318da8 !important;
    color: #fff;
}

.wp-pagenavi span.current {
    background: #318da8;
    border-color: #318da8 !important;
    color: #fff;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
#primary {
    width: 623px;
    float: left;
}

#sidebar {
    width: 300px;
    float: right;
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}