/* ВК Горький-НН — стили сайта */
/* SUPER IMPORTANT DON'T TOUCH without asking */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    background: #f0fdf4;
    color: #1a2e1d;
    font-size: 16px;
}

a {
    color: #16a34a;
    text-decoration: none;
}

a:hover {
    color: #15803d;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

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

p {
    margin-bottom: 12px;
}

/* ====== HEADER ====== */
#header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar_div {
    background: #bbf7d0;
    padding: 7px 20px;
    text-align: center;
    font-size: 12px;
    color: #15803d;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.header_main_row {
    background: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid #bbf7d0;
}

.logo_wrap_div {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo_wrap_div:hover {
    text-decoration: none;
}

.site_name_big {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a2e1d;
    text-decoration: none;
}

.site_name_big:hover {
    color: #15803d;
    text-decoration: none;
}

.nav_div {
    background: #15803d;
}

.nav_div ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
}

.nav_div ul li {
    /* each nav item */
}

.nav_div ul li a {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    padding: 11px 16px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav_div ul li a:hover {
    background: #16a34a;
    text-decoration: none;
}

/* ====== PAGE WRAPPER ====== */
.page_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 15px 0 15px;
}

/* ====== HERO SECTION ====== */
.hero_block {
    background: linear-gradient(135deg, #15803d 0%, #1a2e1d 100%);
    color: #fff;
    padding: 32px 28px;
    margin-bottom: 22px;
}

.hero_block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.hero_block p {
    font-size: 14px;
    color: #bbf7d0;
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero_badge {
    display: inline-block;
    background: #f97316;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.btn_orange {
    display: inline-block;
    background: #f97316;
    color: #fff;
    padding: 9px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    font-family: 'Source Sans Pro', sans-serif;
}

.btn_orange:hover {
    background: #ea6c00;
    color: #fff;
    text-decoration: none;
}

/* ====== MAIN THREE-COLUMN GRID ====== */
.main_grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
}

.left_sidebar_div {
    min-width: 0;
}

.right_sidebar_div {
    min-width: 0;
}

.main_content_area {
    min-width: 0;
}

/* ====== SIDEBAR WIDGETS ====== */
.widgetBox {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    padding: 14px;
    margin-bottom: 18px;
}

.widgetBox h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #1a2e1d;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 7px;
    margin-bottom: 12px;
}

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

.widgetBox ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f0fdf4;
    font-size: 13px;
}

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

.widgetBox ul li a {
    color: #1a2e1d;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

.widgetBox ul li a:hover {
    color: #16a34a;
}

.widget_author_box {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

/* ====== SECTION HEADING ====== */
.section_heading {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #1a2e1d;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ====== ARTICLE CARDS ====== */
.cards_grid_3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.cards_grid_2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.card_box {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card_box:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.card_box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.card_box_content {
    padding: 10px 11px 12px;
}

.card_box_content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.card_box_content h3 a {
    color: #1a2e1d;
    text-decoration: none;
}

.card_box_content h3 a:hover {
    color: #16a34a;
}

.card_excerpt_text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 7px;
}

.card_date_small {
    font-size: 11px;
    color: #999;
    display: block;
}

.cat_badge_green {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

/* category page cards — slightly bigger */
.cards_grid_cat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.card_cat {
    background: #fff;
    border: 1px solid #bbf7d0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card_cat:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
}

.card_cat img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card_cat_body {
    padding: 14px;
}

.card_cat_body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card_cat_body h3 a {
    color: #1a2e1d;
    text-decoration: none;
}

.card_cat_body h3 a:hover {
    color: #16a34a;
}

.card_cat_excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.card_cat_date {
    font-size: 12px;
    color: #999;
}

/* ====== BREADCRUMBS ====== */
.breadcrumbs_nav {
    padding: 8px 0 12px;
    font-size: 13px;
    color: #888;
}

.breadcrumbs_nav a {
    color: #16a34a;
    text-decoration: none;
}

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

.bread_sep {
    margin: 0 6px;
    color: #bbb;
    font-size: 12px;
}

.bread_current {
    color: #666;
}

/* ====== CATEGORY PAGE HEADER ====== */
.cat_page_header {
    margin-bottom: 20px;
}

.cat_page_header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a2e1d;
    padding-bottom: 10px;
    border-bottom: 2px solid #16a34a;
}

/* ====== ARTICLE PAGE ====== */
.content-box {
    background: #ffffff;
    padding: 22px;
    border: 1px solid #bbf7d0;
}

#main-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a2e1d;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article_pub_date {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    display: block;
}

.article_img_first {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* ====== ARTICLE CONTENT (injected) ====== */
.entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1a2e1d;
}

.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1a2e1d;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 4px solid #16a34a;
}

.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #15803d;
    margin: 22px 0 10px;
}

.entry-content p {
    margin-bottom: 14px;
}

.entry-content ul,
.entry-content ol {
    margin: 12px 0 14px 28px;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}

.entry-content thead {
    background: #15803d;
}

.entry-content th {
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
}

.entry-content td {
    padding: 8px 12px;
    border-bottom: 1px solid #bbf7d0;
    color: #1a2e1d;
}

.entry-content tbody tr:nth-child(even) {
    background: #f0fdf4;
}

.entry-content tbody tr:hover {
    background: #ecfdf5;
}

.entry-content blockquote {
    border-left: 4px solid #f97316;
    background: #fff7ed;
    padding: 14px 18px;
    margin: 18px 0;
    font-style: italic;
    color: #555;
    font-size: 15px;
}

.entry-content .infobox {
    background: #ecfdf5;
    border: 1px solid #16a34a;
    border-radius: 3px;
    padding: 14px 16px;
    margin: 18px 0;
}

.entry-content .stat-block {
    background: #15803d;
    color: #ffffff;
    padding: 16px;
    margin: 18px 0;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.entry-content a {
    color: #16a34a;
}

.entry-content a:hover {
    color: #15803d;
    text-decoration: underline;
}

/* ====== TAGS ====== */
.article_tags_block {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #bbf7d0;
    font-size: 13px;
}

.tags_label {
    font-weight: 600;
    color: #666;
}

.tags_cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

a.tag_pill {
    display: inline-block;
    background: #ecfdf5;
    border: 1px solid #16a34a;
    color: #15803d;
    padding: 3px 10px;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

a.tag_pill:hover {
    background: #16a34a;
    color: #fff;
    text-decoration: none;
}

/* ====== FOOTER ====== */
#footer {
    background: #1a2e1d;
    color: #bbb;
    padding: 38px 20px 18px;
    margin-top: 40px;
}

.footer_inner_wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.footer_cols_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 28px;
}

.footer_col h4 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #16a34a;
}

.footer_col p {
    font-size: 13px;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 0;
}

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

.footer_col ul li {
    margin-bottom: 9px;
}

.footer_col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer_col ul li a:hover {
    color: #16a34a;
}

.footer_copy_row {
    border-top: 1px solid #333;
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1000px) {
    .main_grid {
        grid-template-columns: 1fr;
    }

    .left_sidebar_div {
        order: 3;
    }

    .right_sidebar_div {
        order: 2;
    }

    .main_content_area {
        order: 1;
    }

    .footer_cols_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .cards_grid_3col {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav_div ul {
        flex-direction: column;
    }

    .hero_block {
        padding: 20px 16px;
    }

    .hero_block h2 {
        font-size: 20px;
    }

    .site_name_big {
        font-size: 22px;
    }
}

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

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

/* extra styles copied from somewhere on the internet, maybe needed */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-10 {
    margin-top: 10px;
}
