﻿:root {
  /* відступ */
  --space: 1rem;
  /* Колір посилань */
  --link-color: #3A7D44;
  /* Колір при наведенні */
  --hover-color: #1f3422;
  /* Колір фону */
  --bg-color: #f4f8f2;
  /* Колір панелей */
  --bg-color-panel: #efefef;
  /* Колір бордера */
  --border-color: #d6e3d1;
}

@font-face {
  font-family: "Blogger Sans";
  src: url("fonts/BloggerSans.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Blogger Sans";
  src: url("fonts/BloggerSansB.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

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

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

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

ul,
ol {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.6;
}

input,
button {
  font: inherit;
  outline: none;
}

button {
  cursor: pointer;
}
/* Прибираємо кнопку очищення (хрестик) у Chrome, Safari та Edge */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Для Internet Explorer та старого Edge (якщо раптом треба) */
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden-block {
  display: none;
}

.panel-style {
  background: var(--bg-color-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: var(--space);
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

html {
  font-size: 87.5%;
  height: 100%;
}

body {
  min-height: 100%;
  display: grid;
  gap: 1rem;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg-color);
  color: var(--color-text);
  line-height: 1.6;
}

.top-line {
  background: var(--bg-color-panel);
  border-bottom: 1px solid var(--border-color);
}

.logo-link span {
  display: none;
}

.logo-link {
  font-size: 1.5rem;
  font-weight: bold;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  order: 1;
}

.header-search input {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 17px 5px 15px;
  width: 100%;
}

.search-icon {
  position: absolute;
  right: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--link-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  background: var(--link-color);
  transform: rotate(-45deg);
  right: -3px;
  bottom: -4px;
  border-radius: 2px;
}
  .breadcrumbs {
    display: none;
  }
.main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.news-min {
  border-bottom: 1px solid var(--color-primary-light);
  padding-bottom: var(--space);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.news-title {
  line-height: 1.2;
  font-size: 1.4rem;
}

.news-meta {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: .4rem;
  padding: .4rem .5rem;
}

.article-full {
  display: grid;
  gap: var(--space);
}

.article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.article-title {
  font-size: 1.6rem;
}

.article-body h2 {
  margin: .8rem 0 .5rem 0;
  font-size: 1.3rem;
}

.article-body p {
  margin: .9rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}
.article-body ul, .article-body ol {
	margin: .7rem 0;
	padding-left: 1.8rem;
	font-weight: 500;
	font-size: 1.1rem;
}
.article-body ul {
	list-style: disc;
}
.article-body ol {
	list-style: decimal;
}
.wp-block-quote {
	border-left: 4px solid var(--link-color);
	background: var(--bg-color);
    border-radius: 8px;
    color: #2f4a33;
	padding: .1rem 1rem;
}
.post-navigation {
  display: none;
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  padding: .4rem .8rem;
}

.widget-title {
  margin-bottom: .5rem;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.popular-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.popular-list a {
  display: grid;
  align-items: center;
  grid-template-columns: 90px 2fr;
  gap: .5rem;
}

.pagination {
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pagination-list a,
.pagination-list span {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 2rem;
  aspect-ratio: 1/1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-list a:hover {
  border-color: var(--hover-color);
}

.pagination-list span {
  border-color: var(--color-text);
  cursor: no-drop;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space);
}

.error-code {
  color: var(--link-color);
  font-size: clamp(4rem, 8vw, 6rem);
}

.error-title {
  font-size: clamp(1.6rem, 3vw, 1.8rem);
  line-height: 1.25;
  color: var(--hover-color);
}

.btn-home {
  background: var(--link-color);
  border: 1px solid var(--hover-color);
  border-radius: .5rem;
  color: #fff;
  display: inline-flex;
  padding: .4rem .9rem;
  margin: .4rem 0;
}

.btn-main:hover {
  color: #000;
}

.footer {
  background: var(--bg-color-panel);
  border-top: 1px solid var(--border-color);
  padding: .9rem 0;
}

.footer .container {
  display: none;
}

.footer-copy {
  text-align: center;
  color: #5c6d5f;
}