/*
Theme Name: Gridbox Child
Template: gridbox
Author: Ваше имя
Version: 1.0
Description: Дочерняя тема Gridbox с кастомными стилями для сериалов и подборок.
*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* --- 🔹 Оформление SEO-статей --- */
.entry-content img {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* --- 🔹 Автор и даты --- */
.post-author {
    font-size: 15px;
    color: #666;
    margin-top: 10px;
}

.post-author span[itemprop="name"] {
    font-weight: 600;
    color: #000;
}
.related-posts {
    margin-top: 40px;
    padding: 25px;
    border-top: 2px solid #eee;
}

.related-posts h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

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

.related-posts li {
    margin: 8px 0;
}

.related-posts a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.related-posts a:hover {
    text-decoration: underline;
    color: #000;
}

.entry-thumbnail-float {
    float: left; /* картинка слева, можно right */
    margin: 0 20px 20px 0; /* отступы справа и снизу */
    max-width: 300px; /* максимальная ширина */
    
}

.entry-thumbnail-float img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* clearfix для хедера */
.entry-header.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* На мобильных — картинка сверху */
@media (max-width: 768px) {
    .entry-thumbnail-float {
        float: none;
        margin: 0 0 15px 0;
        max-width: 100%;
    }
}

/*для новостей статей*/
.news-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: all .3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h2 a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.news-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.news-readmore a {
  color: #f55a27;
  text-decoration: none;
  font-weight: 600;
}

.news-filters {
  text-align: center;
  margin: 20px 0;
}

.filter-btn {
  background: #f26739;
  border: none;
  padding: 8px 18px;
  border-radius: 5px;
  margin: 5px 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #f55a27;
  color: #fff;
}

#load-more {
    padding:10px 20px;
    border:none;
    border-radius:5px;
    background:#f26739;
    color:#fff;
    cursor:pointer;
}

#load-more:hover {
    background:#f55a27;
}
