/* Базовые стили для блока новостей */

.news-block {
    max-width: var(--main-container);
    margin: 40px auto;
    margin-top: 0px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Категория новости */
.news-category {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #007bff;
  padding: 5px 15px;
  border-radius: 20px;
  margin-bottom: 10px;
  
}

.news-category a {
    position: static !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.news-category a:after {
    display: none !important;
    content: none !important;
}

.news-category a:hover {
    text-decoration: none;
}


.news-category-color-trends {
    background-color: #3949AB; /* глубокий синий-инсайт */
}
.news-category-color-trends:hover {
    background-color: #283593;
}

.news-category-color-marketing {
    background-color: #00897B; /* холодный бирюзовый */
}
.news-category-color-marketing:hover {
    background-color: #00695C;
}

.news-category-color-ai {
    background-color: #6A1B9A; /* глубокий фиолетовый */
}
.news-category-color-ai:hover {
    background-color: #4A148C;
}

.news-category-color-cases {
    background-color: #455A64; /* графит */
}
.news-category-color-cases:hover {
    background-color: #263238;
}

.news-category-color-mentorship {
    background-color: #43A047; /* зелёный рост */
}
.news-category-color-mentorship:hover {
    background-color: #2E7D32;
}

.news-category-color-partners {
    background-color: #8E24AA; /* мягкий фиолетово-розовый */
}
.news-category-color-partners:hover {
    background-color: #6A1B9A;
}

.news-category-color-opinion {
    background-color: #D32F2F; /* уверенный красный */
}
.news-category-color-opinion:hover {
    background-color: #B71C1C;
}






/* Заголовок новости */
.news-block h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: none;
}

/* Подзаголовок */
.news-block h2 {
    font-size: 24px;
    font-weight: 500;
    color: #555;
    margin-bottom: 15px;
    text-transform: none;
}

/* Изображение новости */
.news-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Текст новости */
.news-block p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  text-align: justify;
}

/* Смысловой тег / ключевая мысль */
p.sense-tag {
  margin: 48px 0 12px;
  padding: 10px 16px;


  display: inline-block;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: #3F51B5;
  background-color: #EEF1FA;

  border-radius: 999px;
}

p.sense-tag + h2 {
    margin-top: 0; /* h2 прямо после sense-tag */
}




/* Секция даты и просмотров */
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

/* Стили для даты публикации */
.news-meta .date {
  font-weight: 400;
}

/* Стили для количества просмотров */
.news-meta .views {
  font-weight: 600;
  color: #007bff;
}

/* Кнопка 'Читать далее' */
.news-block .read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.news-block .read-more:hover {
  background-color: #0056b3;
}



/* Базовые стили для блока полной новости */
.full-news-block {
  font-size: 18px;
  margin: 0px auto;
  padding: 40px 80px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* управлеине стилями в main.js */ 
.full-width-img {

}


.full-width-small-img {

}




.full-news-block ul, .full-news-block ol {
  font-size: 18px;  
}

.full-news-block li {
    line-height: 1.5;
    margin-bottom: 5px;
}

.full-news-block h3 {
     padding-top: 60px;
}



.full-news-block figure {
    margin-top: 40px;    
    margin-bottom: 60px;
}


.full-news-block figure figcaption {
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  color: #555;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}



.full-news-block figure figcaption p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 8px;
}


.full-news-block figure figcaption p:last-child {
  margin-bottom: 0;
}




/* Заголовок новости */
.full-news-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

/* Изображение новости */
.full-news-image img {
  width: 100%;
  height: auto;
}

.full-news-image p {
  font-size: 14px;
  padding: 16px 0;
  margin-bottom: 60px;
}


/* Контент новости */
.full-news-content {
    max-width: 800px;
    margin: 0 auto;
}

.full-news-content p {
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 28px;
}


.full-news-content h2 {
    margin-top: 100px;
}

.full-news-content h3 {
    margin-top: 50px;
}

.full-news-content .content h3{
    margin-top: 0px;
}




/* Секция даты и просмотров для полной новости */
.full-news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #777;
  margin-top: 50px;
  margin-bottom: 25px;
}

/* Дата публикации */
.full-news-meta .full-news-date {
  font-weight: 400;
}

/* Количество просмотров */
.full-news-meta .full-news-views {
  font-weight: 600;
  color: #007bff;
}

/* Мобильная версия */
@media (max-width: 768px) {
    
.news-block {
    max-width: calc(100% + 60px);
    margin: 30px -15px;
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: none;
    transition: none;
}

.news-block:hover {
  transform: none;
  box-shadow: none;
}
   

/* Заголовок новости */
.news-block h1 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Подзаголовок */
.news-block h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Текст новости */
.news-block p {
  line-height: 1.5;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  p.sense-tag {
    font-size: 12px !important;
    padding: 8px 14px;
    margin: 32px 0 8px;
  }
}


/* Базовые стили для блока полной новости */
.full-news-block {
  font-size: 18px;
  margin: 0px;
  padding: 0;
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: none;
}    
    
    /* Изображение новости */
.full-news-image img {
  border-radius: 4px;
}
    
.full-news-image p {
  margin-bottom: 10px;
}

  .news-meta {
    margin-bottom: 12px;
  }

  .news-image img {
    width: 100%;
    border-radius: 8px;
  }
  
  .full-news-title {
    font-size: 28px;
  }
  
.full-news-content p, .full-news-content ul, .full-news-content ol   {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}


.full-news-block li {
    line-height: 1.5;
    margin-bottom: 10px;
}

.full-news-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}


.full-news-content h3 {
    margin-top: 20px;
}

.full-news-block h3 {
     padding-top: 10px;
}

.news-category {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

  .full-news-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .full-news-meta .full-news-views {
    margin-top: 10px;
  }

  
 
  }


  
.full-news-image img {
  margin-bottom: 25px;
}  

.pagination {
    margin-top: 50px;
}

.pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
}
.pagination li {
  margin: 0 5px;
}
.pagination a {
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
}
.pagination a.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
  
  


/* Таблица внутри полной новости */
.full-news-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 16px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Заголовок таблицы */
.full-news-block table thead {
  background-color: #f0f0f0;
}

.full-news-block table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

/* Ячейки таблицы */
.full-news-block table td {
  padding: 14px 20px;
  color: #555;
  border-bottom: 1px solid #eee;
}

/* Чередование строк */
.full-news-block table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Hover-эффект */
.full-news-block table tbody tr:hover {
  background-color: #f5faff;
  transition: background-color 0.3s ease;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .full-news-block table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
  }

  .full-news-block table th,
  .full-news-block table td {
    white-space: nowrap;
    padding: 12px 16px;
  }
}
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 24px;
    margin-bottom: 48px;
}

.gallery-grid a {
    display: block;
    width: calc(25% - 12px);
    text-decoration: none;
    color: inherit;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.gallery-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

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

.gallery-grid figure:hover img {
    transform: scale(1.03);
}

.gallery-grid figcaption {
    padding: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media screen and (max-width: 1024px) {
    .gallery-grid a {
        width: calc(33.333% - 11px);
    }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
}

@media screen and (max-width: 768px) {
    .gallery-grid a {
        width: calc(50% - 8px);
    }
    
  
}

@media screen and (max-width: 480px) {
    .gallery-grid a {
        width: 100%;
    }

    .gallery-grid img {
        height: 180px;
    }
    
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
}

    .fotoNewsImageList {
    margin-bottom: 20px;
    }
    
/* 🎨 Стиль для Python-кода */
.language-python {
    display: block;
    background-color: #1e1e1e; /* тёмный фон */
    color: #dcdcdc; /* базовый цвет текста */
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

/* Ключевые слова */
.language-python .keyword {
    color: #569cd6;
    font-weight: bold;
}

/* Строки */
.language-python .string {
    color: #ce9178;
}

/* Комментарии */
.language-python .comment {
    color: #6a9955;
    font-style: italic;
}

/* Числа */
.language-python .number {
    color: #b5cea8;
}

/* Функции */
.language-python .function {
    color: #dcdcaa;
}


.photo-caption {
  font-size: 14px;
  color: #777;
  margin-top: -20px !important;
  margin-bottom: 30px !important;
  font-style: italic;
}

    
.link-block {
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 3px solid #0077cc;
  background: #f9f9fb;
  border-radius: 6px;
}

.link-block .title {
  font-weight: 600;
  color: #222;
  margin-bottom: 3px;
}

.link-block a {
  display: inline-block;
  word-break: break-all;
}
