/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

html {
  margin-top: 0 !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/

.all-posts-section {
  flex-grow: 1;
}

.more-link {
  display: block;
}

/* Сетка записей */
.kma-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

.kma-heading {
  display: flex;
  flex-direction: column;
}

.kma-heading h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.kma-heading p {
  font-size: 16px;
  margin: 0;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 12px;
  background: #ffffff30;
  border: 1px solid #333;
  padding: 10px 12px;
  height: 550px;
}

.posts-grid input {
  padding: 6px 18px;
  background: #545453;
  border-radius: 20px;
  color: #fff;
  border: none;
  height: fit-content;
}

.posts-grid input::placeholder {
  color: #ffffff90;
  font-family: "Montserrat";
  font-size: 12px;
}

.posts-grid > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.post-card {
  height: 150px;
  background: #545453;
  padding: 9px 15px;
  border-radius: 16px;
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card > a {
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card > a img {
  height: 100%;
  width: 150px;
}

.post-card > a > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 80%;
}

.post-card > a > div h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.post-card > a > div div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card > a > div div p {
  font-size: 14px;
}

.post-card > a > div > p {
  font-size: 12px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

/* футер страницы */

#footer {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 80px 0;
  border-top: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  bottom: 0;
}

#footer > img {
  width: 64px;
  height: 64px;
}

#footer .kma-footer-contacts img {
  width: 24px;
  height: 24px;
}

#footer .kma-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

#footer .kma-footer-tourney,
#footer .kma-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer .kma-footer-tourney h4,
#footer .kma-footer-contacts h4 {
  color: #000;
  font-size: 18px;
  font-weight: 600;
}

#footer .kma-footer-tourney a {
  text-decoration: none;
  font-size: 14px;
  color: #fff;
}

#footer .kma-footer-contacts div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

#footer .kma-footer-contacts a {
  width: fit-content;
  border-radius: 50px;
  background-color: #fff;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
