/* 
Theme Name: Real gTV Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Real gTV Child is a child theme of Real gTV, created by Elementor team
Author: Bekker & Co
Author URI: https://vladbekker.site/
Template: hello-elementor
Version: 2.0.0
Text Domain: realgtv-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Стили для шорткода [get_blog_cats] */
.blog-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

/* Карточка */
.blog-cat-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* hover эффект */
.blog-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Миниатюра */
.blog-cat-thumb {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f3f3f3;
}
.blog-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Заглушка если нет миниатюры */
.blog-cat-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg,#f0f0f0,#e6e6e6);
}

/* Тело карточки */
.blog-cat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

/* Заголовок */
.blog-cat-title {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.2;
}
.blog-cat-title a {
  color: #222;
  text-decoration: none;
}

/* Описание */
.blog-cat-excerpt {
  color: #555;
  font-size: 0.95rem;
  flex: 1 1 auto;
}

/* Мета / кнопка */
.blog-cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.9rem;
}
.blog-cat-readmore {
  background: #ff6b2d;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.nashi-koshki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.nashi-koshki-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.nashi-koshki-thumb img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}
.nashi-koshki-title {
    font-size: 18px;
    margin: 10px 0;
}
.nashi-koshki-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f06c64;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.nashi-koshki-link:hover {
    background: #d5554d;
}


/* Мобилка — 1 колонка, планшет — 2 */
@media (max-width: 900px) {
  .blog-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-cats-grid {
    grid-template-columns: 1fr;
  }
  .blog-cat-thumb { height: 160px; }
}
