
/*
Theme Name: Mozajournal
Theme URI: https://mozajournal.com/
Author: Mozajournal Team
Author URI: https://mozajournal.com/
Description: Modern magazine theme with hero section, slider, and responsive design. Perfect for news, blogs, and online magazines. Includes admin panel for easy customization.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mozajournal
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Tags: blog, news, magazine, two-columns, three-columns, custom-menu, custom-logo, featured-images, sticky-post, translation-ready, responsive-layout, theme-options
*/


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.logo-wrapper {
  box-sizing: border-box;
  width: 100%;
  padding: 2.3rem 5% 1rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,.1);
  transition: opacity 0.4s ease, transform 0.4s ease; /* плавная анимация */
  opacity: 1;                     /* видимый по умолчанию */
  transform: translateY(0);

}

.header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 3000;
    transition: transform 0.4s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 700px) {
  .header {
    position: relative;
  }
} 

.logo-wrapper.hide-logo {
  opacity: 0;
  transform: translateY(-30px);   /* уходит вверх чуть-чуть */
  pointer-events: none; /* чтобы не мешал клику */
}

header.hide-logo {
  transform: translateY(-70px);
}
.bottom_line {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Menu Styles */

.nav-main-container{
  max-width: 1200px;
  width: 100%;
  max-width: none ;          /* убираем 1000px, иначе поиск не дойдёт до края */
  padding: 1.5rem  1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(0,0,0,0.1);
}
.nav{
flex: auto;
display: flex;
justify-content: center;
}

.ham-menu{
  display: none;
  position: absolute;
  width: 40px;
  height: 44px;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 1002;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.ham-menu span:nth-child(1){ top: 25%; }
.ham-menu span:nth-child(2){ top: 50%; }
.ham-menu span:nth-child(3){ top: 75%; }

.ham-menu span {
  position: absolute;
  width: 100%;
  left: 50%;
  height: 5px;
  top: 50%;
  background:#888; /* или #000 — если фон светлый */
  transition: 0.3s ease; /* плавная анимация */
  transform: translate(-50%, -50%);
}

.ham-menu.active span:nth-child(1){
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2){
   opacity: 0;
}

.ham-menu.active span:nth-child(3){
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-logo img {
   width: 150px;
   height: 100%;
}

.nav_list {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.nav_list a {
font-size: 16px;
font-weight: 500;
color: #333;
}

/*   Seach-bar styles         */


.search-toggle{
  background: none;
  margin-left: 20px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color:#000;
  transition: .2s ease;
  padding: 8px;
}
.search-toggle:hover{
  opacity: .7;
}

.search-toggle svg {
  width: 22px;
  height: 22px;
}

.search-overlay {
  position:fixed;  /* фиксируется к окну браузера */
  inset:0;         /* shorthand для top:0; right:0; bottom:0; left:0; */
  z-index:9999;    /* поверх всего */
  visibility: hidden; 
  opacity: 0;     /* по умолчанию скрыт */
  transition: opacity .1s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.search-overlay__backdrop{
  position: absolute;
  inset: 0; 
  background: rgb(0,0,0, .6);
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}

.search-overlay__panel{
position: absolute;
inset: 0;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 20vh;
}
.search-overlay__form{
  position:relative;
  width:min(820px, 92vw);
  display: flex;
  align-items: center;
  gap: 5px;
  background: #111;
  color: #fff;
  padding:16px 56px 16px 20px; /* отступы внутри формы */
  border-radius: 10px;
  box-shadow:0 10px 30px rgba(0,0,0,.4); /* мягкая тень */
  outline:1px solid rgba(255,255,255,.12); /* тонкая рамка */
  animation: slideDown .25s ease; /* появление сдвигом вниз */
}
.search-overlay__form input{
  flex:1;                 /* занимает всё доступное пространство */
  background:transparent; /* без фона */
  border:0; outline:0;    /* без рамок */
  color:#fff; 
  font-size:20px;
  caret-color:#fff;       /* курсор белый */
}

.search-overlay__submit{
   position: absolute;
   right: 48px;
   top: 50%;
   transform:translateY(-50%);
   background: none;
   border: 0;
   color: #fff;
   cursor: pointer;
   opacity: .85;
}
.search-overlay__submit:hover{ 
  opacity:1; 
}
.search-overlay__close{
  position: absolute;
  right: -40px;
  top: 45%;
  transform:translateY(-50%);
  background:none; 
  border:0; 
  color:#fff;
  font-size:52px; 
  cursor:pointer; 
  opacity:.8;
}
.search-overlay__close:hover{opacity:1;}
.nav_list li a{
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav_list li a:hover {
  color: #555;
  text-shadow: 0 0 10px #555;
}

main {
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 60px;
  background-color: #fff;
}

.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* === HERO SECTION === */
.hero {
  display: flex;
  gap: 30px; /* расстояние между колонками */
  align-items: flex-start;
  padding: 40px 80px;
  background-color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #000;
}

/* Левая колонка */
.hero-left {
  flex: 1; /* занимает 1 часть ширины */
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.small-article img {
  width: 100%;
  height: 350px;         /* 👈 set desired height */
  object-fit: cover;     /* 👈 crop image neatly */
  border-radius: 4px;
}

.small-article h3 {
  font-size: 16px;
  color: #111;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.3;
}

.small-article a {
  text-decoration: none;
  color: inherit;
}

.small-article a:hover h3 {
  color: #0366d6;
}

.small-article p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.4;
}

.small-article .author {
  font-size: 13px;
  color: #666;
}

/* Центральная колонка */
.hero-main {
  flex: 2; /* главная колонка шире */
}

.hero-main img {
  width: 100%;
  height:900px;
  border-radius: 6px;
  object-fit: cover;
}

.hero-main h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 15px 0 8px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
}

.hero-main a {
  text-decoration: none;
  color: inherit;
}

.hero-main a:hover h2 {
  color: #0366d6;
}

.hero-main em {
  font-style: italic;
}

.hero-main .author {
  color: #555;
  font-size: 14px;
}

/* Правая колонка (sidebar) */
.hero-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-sidebar h5,
.hero-sidebar h4 {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin: 0 0 24px 0;
  padding: 0;
  color: #000;
  border: none;
}

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item__category {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.sidebar-item__category:hover {
  background: #0052a3;
}

.sidebar-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

.sidebar-item__title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-item__title a:hover {
  color: #0066cc;
}

.sidebar-item__author {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #666;
  text-transform: uppercase;
}

.sidebar-item__image {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  display: block;
}

.sidebar-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sidebar-item__image:hover img {
  transform: scale(1.05);
}

span.category a {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
    text-decoration: none;
}

ul.post-categories {
    list-style: none;
}



/* .cover-stars__fade.left  { left: 0;  background: linear-gradient(90deg, #fff, #fff0); }
.cover-stars__fade.right { right: 0; background: linear-gradient(270deg, #fff, #fff0); } */

/* ---------- header ---------- */

.cover-stars {
  padding-block: 24px 48px;
  --gap: 20px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: 20px;
  max-width: 1400px;
  width: 100%;
}

.cover-stars__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: clamp(16px, 3vw, 32px);
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-top: 1px solid rgba(0,0,0,.1);
}

.cover-stars__title {
  font: 600 28px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  letter-spacing: 0.02em;
  text-align: center;
  font-weight: 400;
  margin: 0;
}

.cover-stars__controls {
 display: flex;
 align-items: center;
 gap: 2px;
 position: absolute; 
 right: 0;
 top: 50%;
transform: translateY(-50%);
}

.cover-stars__btn {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cover-stars__btn:hover:not(:disabled) {
  background: #f3f3f3;
  transform: scale(1.05);
}

.cover-stars__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cover-stars__pager {
  min-inline-size: 56px;
  text-align: center;
  font: 500 14px/1 ui-sans-serif;
}

/* ---------- slider track ---------- */
.cover-stars__viewport {
  overflow: hidden;
}

.cover-stars__track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- card ---------- */
.cover-card {
  flex: 0 0 calc(100% / var(--per-view));
}

.cover-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
}

.cover-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.cover-card__media:hover img {
  transform: scale(1.05);
}

.cover-card__meta {
  margin-top: 12px;
  font: 600 12px/1.2 ui-sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.cover-card__title {
  margin: 6px 0 4px;
  font: 600 20px/1.25 ui-sans-serif;
}

.cover-card__title a {
  color: inherit;
  text-decoration: none;
}

.cover-card__title a:hover {
  text-decoration: underline;
}

.cover-card__by {
  color: #666;
  font: 14px/1.3 ui-sans-serif;
}

/* ---------- responsive cards per view ---------- */
:root {
  --per-view: 1;
}

@media (min-width: 640px) {
  :root {
    --per-view: 2;
  }
}

@media (min-width: 1024px) {
  :root {
    --per-view: 3;
  }
}


/* Last News Section  */

.articles-grid-one{
  margin: 50px auto;
  max-width: 1400px;
  width: 100%;
  padding: 60px 0;
}

.articles-grid-one-title{
  max-width: 100%;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,.1);
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.articles-container{
  max-width: calc(1300px + 64px);
  width: 100%;
  margin: 0 auto;
  padding: 24px 0px;
}

.articles-grid-one-list{
  display: flex;
  flex-wrap: wrap; /* позволяет переносить карточки на новую строку */
  gap: 54px;
  justify-content: center;   /* именно влево */
}
.article-card{
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 24px); /* три карточки в ряд */
  max-width: 400px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.article-card:hover {
  transform: translate3d(0,-6px,0); /* целый пиксель */
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
 
}
.article-card__cat{
  text-decoration: none;
  background: white;
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flethex;
  align-items: center;
  backdrop-filter: blur(6px);
  padding: 6px 12px; 
  border-radius: 10px;
}


/* Картинка не должна вываливаться */
.article-card__image{
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 6/5;
  overflow: hidden;
  border-radius: 16px;
  background: #f4f4f4;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.article-card__link:hover img {
  transform: scale(1.03);
}

.article-card-content {
  padding: 12px 0px;
  display: flex;
  flex-direction:column;
  gap: 15px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.article-card__inner {
  border-radius: 24px;
  padding: 15px;
}

.article-card_meta{
display: flex;
flex-direction: column; 
gap: 10px;
}

.article-card_title {
  text-align: left;
  margin-bottom: 8px;
}

.article-card_title a {
  text-decoration: none;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  font-size: clamp(16px, 2vw, 19px);
  transition: color 0.2s ease;
}

.article-card_title a:hover {
  color: #0366d6;
}

.article-card__text{
  font-family: 'Roboto', sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #888; /* можно чуть темнее, чтобы светлый вес не выглядел блекло */
  font-size: clamp(12px, 2vw, 15px);
}
.article-card_author{
will-change: transform;
font-size:  17px;
font-weight: 500;
margin-top: 12px;
display: flex;
align-items: center;
gap: 8px;
text-decoration: none; /* убираем подчёркивание */
color: inherit;        /* наследуем цвет текста */
}

/* === SINGLE POST STYLES === */

/* Main container */
.single-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Post title */
.post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #111;
}

/* Post meta info */
.post-meta {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-meta .meta-sep {
  color: #ccc;
}

.post-meta a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-meta a:hover {
  color: #000;
}

/* Featured image */
.post-thumbnail {
  margin-bottom: 40px;
  margin-left: -20px;
  margin-right: -20px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* Post content */
.post-body {
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.post-body h2 {
  font-size: 1.75rem;
}

.post-body h3 {
  font-size: 1.5rem;
}

.post-body h4 {
  font-size: 1.25rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2em 0;
  display: block;
}

.post-body a {
  color: #0366d6;
  text-decoration: underline;
}

.post-body a:hover {
  color: #024ea4;
}

.post-body blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  border-left: 4px solid #e1e4e8;
  background: #f6f8fa;
  font-style: italic;
  color: #555;
}

.post-body ul,
.post-body ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.post-body li {
  margin-bottom: 0.5em;
}

/* Page links for multi-page posts */
.page-links {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e1e4e8;
  font-weight: 600;
}

/* Post tags */
.post-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e1e4e8;
}

.post-tags a {
  display: inline-block;
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.post-tags a:hover {
  background: #e0e0e0;
  color: #333;
  transform: translateY(-2px);
}

/* Social share */
.post-share {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-share a:hover {
  background: #f0f0f0;
  border-color: #999;
  transform: translateY(-2px);
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  margin-top: 50px;
  align-items: center;
  border: 1px solid #e1e4e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-avatar img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-name a {
  color: #111;
  text-decoration: none;
}

.author-name a:hover {
  color: #555;
}

.author-bio {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Related posts */
.related-posts {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 2px solid #e1e4e8;
}

.related-posts h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #111;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.related-item {
  transition: transform 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.related-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-item:hover img {
  transform: scale(1.05);
}

.related-item h4 {
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

.related-item a:hover h4 {
  color: #0366d6;
}

/* Comments section */
.comments-wrap {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 2px solid #e1e4e8;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.comment-author img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .single-post {
    padding: 20px 16px;
  }

  .post-thumbnail {
    margin-left: -16px;
    margin-right: -16px;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .post-share {
    flex-direction: column;
  }

  .post-share a {
    width: 100%;
  }
}



.article-card_date{
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #888; /* можно чуть темнее, чтобы светлый вес не выглядел блекло */
}

.article-card_author:hover{
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.article-card_author-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-card_author-info{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.artiles-grid-one_paginations{
  width: 100%;
}

.pagination{
  color: #333;
   max-width: 400px;
   margin: 50px auto 0;
   display: flex;
   justify-content: center;
   gap: 16px;
   padding: 50px 20px;
   box-sizing: border-box;
}


.pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; 
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  color: #6b7280;
  } 

 .read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
 }

 .read-time i {
  font-size: 18px;             /* можно чуть больше, чтобы выглядело уравновешенно */
  color: black;
  opacity: 50%;                 /* или свой цвет */
}
/*  Планшет — 2 карточки в ряд */
@media (max-width: 1024px) {
  .article-card {
    flex: 1 1 calc(50% - 20px); /* две карточки */
    max-width: calc(50% - 20px);
  }
}

/*  Телефон — 1 карточка в ряд */
@media (max-width: 600px) {
  .article-card {
    flex: 1 1 100%; /* одна карточка на всю ширину */
    max-width: 100%;
  }
}

/* Mobile Menu Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu */
@media (max-width: 700px) {
  .nav-main-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .nav-main-container.active {
    right: 0;
  }

  .ham-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    width: 100%;
    margin-bottom: 20px;
  }

  .nav_list {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .nav_list li {
    width: 100%;
    border-bottom: 1px solid #e1e4e8;
  }

  .nav_list li:first-child {
    border-top: 1px solid #e1e4e8;
  }

  .nav_list li a {
    display: block;
    padding: 16px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav_list li a:hover {
    background: #f8f9fa;
    color: #0366d6;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

.search-toggle {
    position: fixed;
    top: 2.3rem;
    right: 65px;
    transform: translateY(0);
    z-index: 1002;
    margin-left: 0;
  }
  
.logo-wrapper {
  display: flex;
  justify-content: flex-start;
  position: relative;
}
.article-card{
  max-width: 350px;
} 
.hero{
  gap: 30px;
} 
.hero-left .small-article {
    flex-direction: column;
    gap: 8px;
  }

.hero-main { order: 1;}
.hero-left { order: 2;}
.hero-sidebar { order: 3;}

.hero-left {
    display: grid !important;                    /* временно !important, чтобы перебить старое */
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    text-align:center;
}
   .hero-left .small-article img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;        /* приятная карточка */
    object-fit: cover;
    border-radius: 6px;
  }

  /* делаем элементы сеткой именно на прямых детях */
  .hero-left > * { 
    /* убираем наследованные флексовые стили, если были */
    flex: none; 
    width: auto; 
    margin: 0;
  }

   /* картинка в main не «огурцом» */
  .hero-main img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
  }
   /* отключаем пропорции колонок с десктопа */
  .hero-left, .hero-main, .hero-sidebar { flex: unset; }

.hero-sidebar h5,
.hero-sidebar h4 {
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-top: 1px solid rgba(0,0,0,.1);
  margin-bottom: 20px;
}
.cover-stars__controls{
  position: static;
  margin-top: 20px;
  justify-content: center;
  transform: none;
}
.cover-stars__header {
padding-bottom: 30px;
}


}

























/* === FOOTER STYLES === */
.site-footer {
  background: #000;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
  width: 100%;
}

.footer-container {
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5% 40px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-brand img {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.footer-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 5%;
}

.footer-copyright,
.footer-credits {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credits a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-menu {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* === CATEGORY PAGE STYLES === */
.category-header {
  padding: 60px 5% 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  background-size: 50px 50px;
  pointer-events: none;
}

.category-header__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.category-header__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.category-header__description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 20px;
}

.category-header__description p {
  margin: 0;
}

.category-header__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.category-header__count {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Category Posts Grid */
.category-posts {
  padding: 0 5% 80px;
}

.category-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.category-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f4;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.category-card__image a:hover img {
  transform: scale(1.05);
}

.category-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7280;
}

.category-card__date {
  font-weight: 500;
}

.category-card__separator {
  opacity: 0.5;
}

.category-card__reading-time {
  font-weight: 400;
}

.category-card__category {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.category-card__category:hover {
  color: #764ba2;
}

.category-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.category-card__title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card__title a:hover {
  color: #667eea;
}

.category-card__excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.category-card__author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.category-card__author-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #374151;
  transition: color 0.2s ease;
}

.category-card__author-link:hover {
  color: #667eea;
}

.category-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-card__author-name {
  font-size: 14px;
  font-weight: 500;
}

/* Category Pagination */
.category-pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.category-pagination__list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pagination__item {
  display: inline-block;
}

.category-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-pagination__link:hover {
  background: #f9fafb;
  border-color: #667eea;
  color: #667eea;
}

.category-pagination__link--current {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
  pointer-events: none;
}

.category-pagination__link.prev,
.category-pagination__link.next {
  font-weight: 600;
}

.category-empty {
  text-align: center;
  padding: 80px 20px;
  color: #6b7280;
  font-size: 18px;
}

/* Responsive styles for category page */
@media (max-width: 768px) {
  .category-header {
    padding: 40px 5% 30px;
    margin-bottom: 40px;
  }

  .category-header__title {
    font-size: 32px;
  }

  .category-header__description {
    font-size: 16px;
  }

  .category-posts__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .category-card__content {
    padding: 20px;
  }

  .category-card__title {
    font-size: 20px;
  }

  .category-pagination {
    margin-top: 40px;
  }

  .category-pagination__link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}
