/*
Theme Name: School24 Theme
Theme URI: https://school24.sumy.ua
Description: Кастомна тема для КУ "Сумська загальноосвітня школа № 24". Створена з використанням Bootstrap 5 для забезпечення адаптивного дизайну та сучасного користувацького інтерфейсу.
Author: School24 Development Team
Author URI: https://school24.sumy.ua
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: school24
Domain Path: /languages
Tags: education, school, responsive, bootstrap, ukraine, accessibility-ready

School24 Theme, Copyright 2025 School24 Development Team
School24 Theme is distributed under the terms of the GNU GPL.
*/

/* 
===========================================
БАЗОВІ СТИЛІ ДЛЯ ШКОЛЬНОЇ ТЕМИ
===========================================
*/

/* Bootstrap буде підключено через functions.php */

/* Кастомні стилі школи */
:root {
  --school-primary: #2c5aa0;    /* Синій - освіта, довіра */
  --school-secondary: #28a745;  /* Зелений - зростання, природа */
  --school-accent: #ffc107;     /* Жовтий - сонце, радість */
  --school-dark: #343a40;       /* Темно-сірий для тексту */
  --school-light: #f8f9fa;      /* Світлий фон */
  --school-white: #ffffff;
  
  /* Українські кольори */
  --ukraine-blue: #0057b7;
  --ukraine-yellow: #ffd700;
}

/* Основні стилі */
body {
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--school-dark);
}

/* Общие стили для изображений в контенте */
.entry-content img,
.prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-content img:hover,
.prose img:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Стили для изображений с подписями */
.wp-caption {
    max-width: 100%;
    margin: 1rem auto;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Стили для изображений в блоках WordPress */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Стили для изображений в медіатеці WordPress */
.wp-block-image img,
.wp-block-image figure img,
.wp-block-image .aligncenter img,
.wp-block-image .alignleft img,
.wp-block-image .alignright img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Стили для вирівнювання зображень */
.wp-block-image .aligncenter {
    text-align: center;
    margin: 1rem auto;
}

.wp-block-image .alignleft {
    float: left;
    margin: 1rem 1rem 1rem 0;
}

.wp-block-image .alignright {
    float: right;
    margin: 1rem 0 1rem 1rem;
}

/* Очищення float для контейнерів */
.wp-block-image::after {
    content: "";
    display: table;
    clear: both;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--school-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Посилання */
a {
  color: var(--school-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--school-secondary);
  text-decoration: underline;
}

/* Кнопки */
.btn-school-primary {
  background-color: var(--school-primary);
  border-color: var(--school-primary);
  color: white;
}

.btn-school-primary:hover {
  background-color: var(--school-secondary);
  border-color: var(--school-secondary);
  color: white;
}

.btn-school-secondary {
  background-color: var(--school-secondary);
  border-color: var(--school-secondary);
  color: white;
}

/* Хедер */
.site-header {
  background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-secondary) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: white !important;
}

.site-header .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: background-color 0.3s ease;
}

.site-header .navbar-nav .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Футер */
.site-footer {
  background-color: var(--school-dark);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--school-accent);
}

.site-footer a:hover {
  color: white;
}

/* Исправление цвета текста в футере */
.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .copyright small {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer .footer-links small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .footer-links small a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .footer-links small a:hover {
  color: white !important;
}

/* Осветление заголовков в футере */
.site-footer h6 {
  color: #87ceeb !important; /* Светло-голубой цвет */
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.site-footer h6:hover {
  color: #b0e0e6 !important; /* Еще более светлый при наведении */
}

/* Специально для заголовка "Графік роботи" */
.site-footer .working-hours h6 {
  color: #87ceeb !important;
}

/* Осветление всех заголовков в футере */
.site-footer .col-lg-4 h6,
.site-footer .col-lg-2 h6,
.site-footer .col-lg-3 h6 {
  color: #87ceeb !important;
}

/* Контент */
.main-content {
  padding: 2rem 0;
  min-height: 60vh;
}

/* Карточки */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Адаптивність */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .main-content {
    padding: 1rem 0;
  }
}

/* Доступність */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   СТИЛИ ДЛЯ БЫСТРЫХ ССЫЛОК НА ГЛАВНОЙ СТРАНИЦЕ
   =========================== */

.quick-links {
  margin-bottom: 3rem;
}

.quick-links .card {
  transition: all 0.3s ease;
  border: none;
  background: var(--school-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quick-links .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.quick-links .card-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.quick-links .card-body i {
  display: block;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.quick-links .card:hover i {
  transform: scale(1.1);
}

.quick-links .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--school-primary);
}

.quick-links .card-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Адаптивність для быстрых ссылок */
@media (max-width: 768px) {
  .quick-links {
    margin-bottom: 2rem;
  }
  
  .quick-links .card-body {
    padding: 1.5rem 1rem;
  }
  
  .quick-links .card-body i {
    font-size: 2.5rem;
  }
  
  .quick-links .card-title {
    font-size: 1rem;
  }
  
  .quick-links .card-text {
    font-size: 0.85rem;
  }
}

/* Пропуск посилання для клавіатурної навігації */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--school-primary);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}

/* ===========================
   СТИЛИ ДЛЯ НОВОСТЕЙ
   =========================== */

/* Контейнер новости */
.school-news-content {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    max-width: 100%;
}

/* Параграфы новостей */
.school-news-content .news-paragraph {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-align: justify;
    color: #34495e;
}

/* Подзаголовки в новостях */
.school-news-content .news-subtitle {
    color: #2980b9;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.school-news-content .news-subtitle::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e74c3c;
}

/* Списки в новостях */
.school-news-content .news-list {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.school-news-content .news-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    position: relative;
    font-size: 1.05rem;
    color: #2c3e50;
}

.school-news-content .news-list li::before {
    content: '✓';
    position: absolute;
    left: -1rem;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Ссылки в новостях */
.school-news-content .news-link {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: all 0.3s ease;
    font-weight: 500;
}

.school-news-content .news-link:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    background: rgba(52, 152, 219, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Выделенный текст в кавычках */
.school-news-content .highlighted-text {
    background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
    color: #1b5e20;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Стили для постов новостей */
.post-category-news .entry-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-category-news .entry-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-decoration: none;
}

.post-category-news .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-category-news .entry-title a:hover {
    color: #3498db;
}

/* Метаинформация поста */
.post-category-news .entry-meta {
    background: #ecf0f1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    border-left: 4px solid #3498db;
}

.post-category-news .entry-meta .posted-on,
.post-category-news .entry-meta .byline {
    margin-right: 1rem;
}

.post-category-news .entry-meta a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}

.post-category-news .entry-meta a:hover {
    color: #e74c3c;
}

/* Анонс (excerpt) */
.post-category-news .entry-summary {
    font-size: 1.1rem;
    color: #5d6d7e;
    font-style: italic;
    background: #f7f9fc;
    padding: 1rem 1.5rem;
    border-left: 4px solid #f39c12;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Теги новостей */
.post-category-news .entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.post-category-news .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-category-news .tags-links a {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-category-news .tags-links a:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Адаптивные стили для новостей */
@media (max-width: 768px) {
    .school-news-content .news-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .school-news-content .news-subtitle {
        font-size: 1.2rem;
    }
    
    .post-category-news .entry-content {
        padding: 1.5rem;
    }
    
    .post-category-news .entry-title {
        font-size: 1.5rem;
    }
    
    .school-news-content .news-list {
        padding: 0.8rem 1rem;
        margin: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .school-news-content .news-paragraph {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .post-category-news .entry-content {
        padding: 1rem;
    }
    
    .post-category-news .entry-title {
        font-size: 1.3rem;
    }
    
    .school-news-content .news-list li {
        font-size: 0.95rem;
    }
}

/* Анимация для новостей */
.post-category-news {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Специальные стили для страницы категории новостей */
.category-news .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.category-news .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-news .archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Стили для пагинации новостей */
.category-news .navigation {
    margin-top: 3rem;
    text-align: center;
}

.category-news .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-news .nav-links a,
.category-news .nav-links .current {
    padding: 0.8rem 1.2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-news .nav-links a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-news .nav-links .current {
    background: #e74c3c;
    cursor: default;
}

/* ===========================
   КОНЕЦ СТИЛЕЙ ДЛЯ НОВОСТЕЙ
   =========================== */

/* ===========================
   СТИЛИ ДЛЯ ОТДЕЛЬНОГО ПОСТА (single.php)
   =========================== */

/* Основной контейнер поста */
.single-post {
    animation: fadeInUp 0.6s ease;
}

.single-post .post-featured-image {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
}

.single-post .post-featured-image img {
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.single-post .post-featured-image:hover img {
    transform: scale(1.02);
}

/* Заголовок поста */
.single-post .entry-title {
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Мета информация */
.single-post .entry-meta {
    font-size: 0.95rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.single-post .entry-meta a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .entry-meta a:hover {
    color: var(--school-primary);
}

/* Контент поста */
.single-post .entry-content .prose {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.single-post .entry-content .prose p {
    margin-bottom: 1.5rem;
}

/* Стили для изображений в контенте */
.single-post .entry-content img,
.single-post .entry-content .prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post .entry-content img:hover,
.single-post .entry-content .prose img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Специальные стили для изображений с определенными размерами */
.single-post .entry-content img[width],
.single-post .entry-content .prose img[width] {
    width: auto;
    max-width: 100%;
    height: auto;
}

.single-post .entry-content img[height],
.single-post .entry-content .prose img[height] {
    height: auto;
    max-width: 100%;
    width: auto;
}

/* Стили для изображений в блоках WordPress */
.single-post .entry-content .wp-block-image img,
.single-post .entry-content .prose .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Стили для изображений с подписями */
.single-post .entry-content .wp-caption,
.single-post .entry-content .prose .wp-caption {
    max-width: 100%;
    margin: 1.5rem auto;
}

.single-post .entry-content .wp-caption img,
.single-post .entry-content .prose .wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-post .entry-content .wp-caption-text,
.single-post .entry-content .prose .wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.single-post .entry-content .prose h2,
.single-post .entry-content .prose h3,
.single-post .entry-content .prose h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.single-post .entry-content .prose ul,
.single-post .entry-content .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post .entry-content .prose li {
    margin-bottom: 0.5rem;
}

.single-post .entry-content .prose blockquote {
    border-left: 4px solid var(--school-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Теги поста */
.single-post .entry-tags .tags-list a {
    transition: all 0.3s ease;
}

.single-post .entry-tags .tags-list a:hover {
    background: var(--school-primary) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Кнопки соцсетей */
.single-post .share-buttons .btn {
    transition: all 0.3s ease;
}

.single-post .share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Навигация между постами */
.post-navigation .btn {
    min-height: 80px;
    text-align: left;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.post-navigation .btn:hover {
    border-color: var(--school-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-navigation .btn strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ===========================
   СТИЛИ ДЛЯ КОММЕНТАРИЕВ (comments.php)
   =========================== */

.comments-area {
    margin-top: 3rem;
}

.comments-title {
    color: #2c3e50;
    border-bottom: 2px solid var(--school-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Список комментариев */
.comment-list {
    margin: 0;
    padding: 0;
}

.comment-item {
    margin-bottom: 2rem;
}

.comment-body {
    background: #fff;
    transition: all 0.3s ease;
}

.comment-body:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.comment-author-avatar img {
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.comment-body:hover .comment-author-avatar img {
    border-color: var(--school-primary);
}

.comment-author-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.comment-author-name a:hover {
    color: var(--school-primary);
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-reply .comment-reply-link {
    transition: all 0.3s ease;
}

.comment-reply .comment-reply-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Вложенные комментарии */
.comment-list .children {
    margin-left: 2rem;
    margin-top: 1.5rem;
    border-left: 2px solid #e9ecef;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}

/* Форма комментария */
.comment-respond {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.comment-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.comment-form .form-control:focus {
    border-color: var(--school-primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: 0;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.comment-form .btn-school-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form .btn-school-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Пагинация комментариев */
.comment-navigation .nav-links a {
    color: var(--school-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-navigation .nav-links a:hover {
    color: var(--school-secondary);
    transform: translateX(-3px);
}

.comment-navigation .nav-next a:hover {
    transform: translateX(3px);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .single-post .entry-title {
        font-size: 2rem;
    }
    
    .single-post .entry-content .prose {
        font-size: 1rem;
    }
    
    .post-navigation .row > div {
        margin-bottom: 1rem;
    }
    
    .post-navigation .btn {
        min-height: auto;
        padding: 1rem;
    }
    
    .comment-respond {
        padding: 1.5rem;
    }
    
    .single-post .share-buttons {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .single-post .entry-title {
        font-size: 1.75rem;
    }
    
    .single-post .entry-meta {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .single-post .entry-meta .row > div {
        margin-bottom: 0.5rem;
    }
    
    .comment-respond {
        padding: 1rem;
    }
    
    /* Адаптивные стили для изображений на мобильных */
    .entry-content img,
    .prose img,
    .single-post .entry-content img,
    .single-post .entry-content .prose img {
        margin: 1rem auto;
        border-radius: 6px;
    }
    
    .wp-caption,
    .single-post .entry-content .wp-caption {
        margin: 1rem auto;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   КОНЕЦ СТИЛЕЙ ДЛЯ SINGLE/COMMENTS
   =========================== */

/* ===========================
   HERO-СЕКЦИЯ С ИЗОБРАЖЕНИЕМ ШКОЛЫ
   =========================== */

/* Основной контейнер hero-секции */
.hero-card {
    min-height: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 15px !important;
}

/* Фоновое изображение */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
}

/* Темное наложение для читаемости текста */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(44, 62, 80, 0.5) 0%, 
        rgba(52, 152, 219, 0.4) 50%,
        rgba(46, 204, 113, 0.3) 100%
    );
    border-radius: 15px;
}

/* Контент hero-секции */
.hero-content {
    z-index: 10;
    padding: 4rem 1rem;
}

/* Анимации для текста */
.hero-title {
    text-shadow: 
        2px 2px 6px rgba(0,0,0,0.6),
        0px 0px 8px rgba(255,255,255,0.3),
        -1px -1px 3px rgba(0,0,0,0.4);
    animation: fadeInDown 1s ease;
    color: #f8f9fa !important;
    font-weight: 700;
}

.hero-subtitle {
    text-shadow: 
        1px 1px 4px rgba(0,0,0,0.5),
        0px 0px 6px rgba(255,255,255,0.2),
        -1px -1px 2px rgba(0,0,0,0.3);
    animation: fadeInDown 1.2s ease;
    color: #f8f9fa !important;
    opacity: 0.95;
}

.hero-description {
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.5),
        0px 0px 5px rgba(255,255,255,0.15);
    animation: fadeInUp 1.4s ease;
    line-height: 1.6;
    color: #f8f9fa !important;
}

/* Кнопки в hero-секции */
.hero-btn {
    animation: fadeInUp 1.6s ease;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===========================
   СЕКЦИЯ "О ШКОЛЕ"
   =========================== */

.about-school-section {
    padding: 4rem 0;
}

/* Контейнер изображения школы */
.about-school-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.school-building-img {
    transition: transform 0.5s ease;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-school-image:hover .school-building-img {
    transform: scale(1.05);
}

/* Бейдж на изображении */
.image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Контент секции о школе */
.about-school-content {
    padding-left: 2rem;
}

/* Особенности школы */
.school-features {
    margin: 2rem 0;
}

.feature-item {
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid transparent;
}

.feature-item:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: var(--school-primary);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===========================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   =========================== */

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .about-school-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .hero-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-card {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .image-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===========================
   ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ
   =========================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавный скролл для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* ===========================
   КОНЕЦ СТИЛЕЙ ДЛЯ HERO И О ШКОЛЕ
   =========================== */

/* ===========================
   ГАМБУРГЕР МЕНЮ НА ВСЕХ ЭКРАНАХ
   =========================== */

/* Показываем кнопку гамбургера на всех экранах */
.navbar-toggler {
  display: block !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 1.1rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
  border-color: rgba(255,255,255,0.6) !important;
  background-color: rgba(255,255,255,0.1) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25) !important;
}

/* СКРЫВАЕМ ГОРИЗОНТАЛЬНОЕ МЕНЮ НА ВСЕХ ЭКРАНАХ */
.site-header .navbar-collapse,
.site-header .collapse.navbar-collapse,
.navbar-expand-lg .navbar-collapse {
  display: none !important;
}

/* Скрываем navbar-nav по умолчанию */
.site-header .navbar-nav,
.navbar-expand-lg .navbar-nav {
  display: none !important;
}

/* Показываем меню только когда оно раскрыто */
.navbar-collapse.show,
.site-header .navbar-collapse.show {
  display: block !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-secondary) 100%) !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  z-index: 1000 !important;
  border-radius: 0 0 12px 12px !important;
  overflow: hidden !important;
}

/* Показываем navbar-nav только в раскрытом меню */
.navbar-collapse.show .navbar-nav,
.site-header .navbar-collapse.show .navbar-nav {
  display: block !important;
  padding: 1rem 0 !important;
  margin: 0 !important;
}

/* Стили для раскрытого меню */
.navbar-collapse.show .nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.navbar-collapse.show .nav-item:last-child {
  border-bottom: none !important;
}

.navbar-collapse.show .nav-link {
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem !important;
  display: block !important;
  transition: all 0.3s ease !important;
  border-left: 4px solid transparent !important;
  color: white !important;
}

.navbar-collapse.show .nav-link:hover {
  background-color: rgba(255,255,255,0.15) !important;
  border-left-color: var(--school-accent) !important;
  padding-left: 2rem !important;
  border-radius: 0 !important;
}

/* Дополнительные элементы меню (поиск и контакты) */
.navbar-collapse.show .navbar-nav.ms-3 {
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  padding-top: 1rem !important;
  margin-top: 1rem !important;
  display: block !important;
}

.navbar-collapse.show .btn-outline-light {
  margin: 0.25rem 1.5rem !important;
  text-align: left !important;
  border-color: rgba(255,255,255,0.3) !important;
  display: block !important;
  width: auto !important;
}

.navbar-collapse.show .btn-outline-light:hover {
  background-color: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* Анимация для иконки гамбургера */
.navbar-toggler-icon {
  transition: transform 0.3s ease !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: rotate(90deg) !important;
}

/* Переопределяем Bootstrap специфику для navbar-expand-lg */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: none !important;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: block !important;
  }
  
  .navbar-expand-lg .navbar-nav {
    display: none !important;
  }
  
  .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }
  
  .navbar-expand-lg .navbar-collapse.show .navbar-nav {
    display: block !important;
  }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .navbar-collapse.show .nav-link {
    font-size: 1rem !important;
    padding: 0.875rem 1rem !important;
  }
  
  .navbar-collapse.show .nav-link:hover {
    padding-left: 1.5rem !important;
  }
}

/* ===========================
   УЛУЧШЕНИЕ ЧИТАЕМОСТИ ПОДМЕНЮ
   =========================== */

/* Кнопки подменю 2-го уровня в мобильной навигации */
.navbar-collapse .navbar-nav > li > ul > li > button {
  color: #c6c6c6 !important;
}

/* Ссылки подменю 3-го уровня в мобильной навигации */
.navbar-collapse .navbar-nav > li > ul > li > ul > li > a {
  color: #c6c6c6 !important;
}

/* При наведении возвращаем полную яркость */
.navbar-collapse .navbar-nav > li > ul > li > button:hover,
.navbar-collapse .navbar-nav > li > ul > li > ul > li > a:hover {
  color: #ffffff !important;
}

/* ===========================
   СТИЛИ ДЛЯ КОЛЛЕКТИВА ШКОЛЫ
   =========================== */

/* ========== АРХИВ КОЛЛЕКТИВА ========== */

.staff-archive-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-secondary) 100%);
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.staff-hero-section .staff-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.staff-hero-section .staff-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Фильтры */
.staff-filter-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-container .filter-group {
    margin-bottom: 2rem;
}

.filter-container .filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--school-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--school-primary);
    padding-bottom: 0.5rem;
}

.subject-filters, .position-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--school-primary);
    border-color: var(--school-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.filter-btn .count {
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.filter-btn.active .count {
    background: rgba(255,255,255,0.3);
}

/* Сетка сотрудников */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.staff-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--school-primary);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--school-primary), var(--school-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-photo {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.staff-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.staff-card:hover .staff-image {
    border-color: var(--school-primary);
    transform: scale(1.05);
}

.staff-no-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.staff-card:hover .staff-no-photo {
    border-color: var(--school-primary);
    background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
    color: white;
}

.staff-no-photo i {
    font-size: 3rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.staff-card:hover .staff-no-photo i {
    color: white;
}

.staff-info {
    text-align: center;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--school-primary);
    margin-bottom: 0.5rem;
}

.staff-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.staff-name a:hover {
    color: var(--school-secondary);
}

.staff-position {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.staff-experience {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.staff-experience i {
    color: var(--school-secondary);
}

.staff-excerpt {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.staff-subjects {
    margin-bottom: 1rem;
}

.staff-subjects strong {
    color: var(--school-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.subject-tag {
    display: inline-block;
    background: var(--school-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.subject-tag a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
}

.subject-tag:hover {
    background: var(--school-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.subject-tag:hover a {
    color: white !important;
    text-decoration: none !important;
}

.staff-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.staff-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.staff-social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Пагинация */
.staff-pagination {
    margin-top: 3rem;
    text-align: center;
}

.staff-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.staff-pagination .nav-links a,
.staff-pagination .nav-links .current {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: var(--school-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.staff-pagination .nav-links a:hover,
.staff-pagination .nav-links .current {
    background: var(--school-primary);
    border-color: var(--school-primary);
    color: white;
}

/* Пустое состояние */
.no-staff-found {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state i {
    color: #6c757d;
    margin-bottom: 2rem;
}

.empty-state h2 {
    color: var(--school-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== СТРАНИЦА ОТДЕЛЬНОГО СОТРУДНИКА ========== */

.staff-single-header {
    padding: 2rem 0;
    background: #f8f9fa;
    margin-bottom: 3rem;
}

.staff-single-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.staff-single-header .breadcrumb-item a {
    color: var(--school-primary);
    text-decoration: none;
}

.staff-single-header .breadcrumb-item a:hover {
    text-decoration: underline;
}

.staff-single-header .breadcrumb-item.active {
    color: #6c757d;
}

.staff-single-content {
    margin-bottom: 4rem;
}

.staff-main-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: sticky;
    top: 2rem;
}

.staff-photo-large {
    margin-bottom: 2rem;
}

.staff-image-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--school-primary);
    margin: 0 auto;
    display: block;
}

.staff-no-photo-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.staff-no-photo-large i {
    font-size: 6rem;
}

.staff-basic-info h1 {
    color: var(--school-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.staff-position-main {
    color: var(--school-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.staff-quick-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.quick-stat {
    text-align: center;
}

.quick-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--school-primary);
    display: block;
}

.quick-stat .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.staff-contact-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.staff-contact-card h3 {
    color: var(--school-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.contact-item i {
    color: var(--school-primary);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #495057;
    text-decoration: none;
    flex: 1;
}

.contact-item a:hover {
    color: var(--school-primary);
}

.staff-social-section {
    margin-top: 1.5rem;
}

.staff-social-section h4 {
    color: var(--school-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links-large .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.staff-detailed-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-section {
    margin-bottom: 3rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--school-primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--school-secondary);
    padding-bottom: 0.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.info-icon {
    background: var(--school-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--school-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-badge {
    background: var(--school-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subject-badge:hover {
    background: var(--school-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.education-details {
    background: white;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-top: 1rem;
}

.education-details h5 {
    color: var(--school-primary);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Похожие сотрудники */
.related-staff-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.related-staff-section h2 {
    color: var(--school-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.related-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.staff-mini-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.staff-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.staff-photo-mini {
    margin-bottom: 1rem;
}

.staff-image-mini {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.staff-no-photo-mini {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #6c757d;
    font-size: 2rem;
}

.staff-info-mini h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.staff-name-mini a {
    color: var(--school-primary);
    text-decoration: none;
}

.staff-name-mini a:hover {
    color: var(--school-secondary);
}

.position-mini {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* ========== СТРАНИЦЫ ТАКСОНОМИЙ ========== */

.position-page-header,
.subject-page-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--school-secondary) 0%, var(--school-primary) 100%);
    color: white;
    margin-bottom: 3rem;
}

.position-hero,
.subject-hero {
    text-align: center;
}

.position-title,
.subject-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.position-title i,
.subject-title i {
    font-size: 2rem;
}

.position-description,
.subject-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.position-stats,
.subject-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taxonomy-filters {
    margin-bottom: 3rem;
    text-align: center;
}

.taxonomy-filters h3 {
    color: var(--school-primary);
    margin-bottom: 1.5rem;
}

.filter-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.position-staff-section,
.subject-staff-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header .section-title {
    color: var(--school-primary);
    font-size: 2rem;
    margin-bottom: 0;
}

.staff-position-card,
.staff-subject-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.staff-position-card:hover,
.staff-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.current-position-badge,
.current-subject-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--school-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.other-positions,
.other-subjects {
    margin: 1rem 0;
}

.other-positions strong,
.other-subjects strong {
    color: var(--school-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.other-positions-list,
.other-subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.other-position-tag,
.other-subject-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.other-position-tag:hover,
.other-subject-tag:hover {
    background: var(--school-primary);
    color: white;
    text-decoration: none;
}

.position-pagination,
.subject-pagination {
    margin-top: 3rem;
    text-align: center;
}

/* Быстрые действия */
.quick-actions {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #f8f9fa;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.action-content h4 {
    color: var(--school-primary);
    margin-bottom: 0.5rem;
}

.action-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.action-link {
    color: var(--school-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--school-primary);
}

/* ========== АДАПТИВНЫЕ СТИЛИ ========== */

@media (max-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .staff-main-info {
        position: static;
        margin-bottom: 2rem;
    }
    
    .staff-image-large {
        width: 200px;
        height: 200px;
    }
    
    .staff-no-photo-large {
        width: 200px;
        height: 200px;
    }
    
    .staff-no-photo-large i {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .staff-hero-section .staff-main-title {
        font-size: 2.5rem;
    }
    
    .staff-hero-section .staff-subtitle {
        font-size: 1.1rem;
    }
    
    .subject-filters, .position-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
    
    .staff-card {
        padding: 1rem;
    }
    
    .staff-image {
        width: 100px;
        height: 100px;
    }
    
    .staff-no-photo {
        width: 100px;
        height: 100px;
    }
    
    .staff-no-photo i {
        font-size: 2.5rem;
    }
    
    .staff-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .staff-actions .btn {
        width: 100%;
    }
    
    .staff-filter-section {
        padding: 1.5rem;
    }
    
    .staff-detailed-info {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .position-title,
    .subject-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .staff-quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .staff-archive-header {
        padding: 2rem 0 1rem;
    }
    
    .staff-hero-section .staff-main-title {
        font-size: 2rem;
    }
    
    .staff-hero-section .staff-subtitle {
        font-size: 1rem;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-filter-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .subject-filters, .position-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .staff-pagination .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .staff-pagination .nav-links a,
    .staff-pagination .nav-links .current {
        width: 100%;
        max-width: 200px;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .staff-main-info {
        padding: 1.5rem;
    }
    
    .staff-image-large {
        width: 150px;
        height: 150px;
    }
    
    .staff-no-photo-large {
        width: 150px;
        height: 150px;
    }
    
    .staff-no-photo-large i {
        font-size: 3rem;
    }
    
    .staff-basic-info h1 {
        font-size: 1.5rem;
    }
    
    .position-page-header,
    .subject-page-header {
        padding: 2rem 0 1rem;
    }
    
    .position-title,
    .subject-title {
        font-size: 1.5rem;
    }
    
    .position-stats,
    .subject-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
}

/* ===========================
   КОНЕЦ СТИЛЕЙ ДЛЯ КОЛЛЕКТИВА
   =========================== */

/* ===========================
   СТИЛИ ДЛЯ КАРТОЧЕК-ССЫЛОК НА ГЛАВНОЙ
   =========================== */

.card-link-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-link-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-link-hover:hover .card-title {
    color: var(--school-primary) !important;
}

.card-link-hover:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ===========================
   КОНЕЦ СТИЛЕЙ ДЛЯ КАРТОЧЕК-ССЫЛОК
   =========================== */

/* Lightbox для фотогалереї */
.gallery-lightbox-modal {
  position: fixed;
  z-index: 1050;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  width: 100vw;
  min-width: 100vw;
  box-sizing: border-box;
}
.gallery-lightbox-modal[aria-hidden="false"] {
  display: flex;
}
.gallery-lightbox-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
}
.gallery-lightbox-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  padding: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.gallery-lightbox-img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 4px;
  outline: none;
}
.gallery-lightbox-caption {
  margin-top: 0.5rem;
  color: #333;
  font-size: 1rem;
  text-align: center;
}
.gallery-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 3;
}
.gallery-lightbox-prev, .gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 3;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}
.gallery-lightbox-prev {
  left: 0.5rem;
  right: auto;
}
.gallery-lightbox-next {
  right: 0.5rem;
  left: auto;
}
@media (max-width: 600px) {
  .gallery-lightbox-content {
    max-width: 98vw;
    max-height: 98vh;
    padding: 0.5rem;
  }
  .gallery-lightbox-img {
    max-width: 95vw;
    max-height: 60vh;
  }
  .gallery-lightbox-prev, .gallery-lightbox-next {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }
  .gallery-lightbox-prev {
    left: 0.1rem;
  }
  .gallery-lightbox-next {
    right: 0.1rem;
  }
}

body.admin-bar .gallery-lightbox-modal {
  top: 32px;
  height: calc(100vh - 32px);
}
@media (max-width: 782px) {
  body.admin-bar .gallery-lightbox-modal {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* Контрастні бейджі для категорій та тегів галереї */
.gallery-categories .badge,
.gallery-tags .badge,
.entry-meta .badge {
  background: #f8f9fa !important;
  color: #2c5aa0 !important;
  border: 1px solid #2c5aa0 !important;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 1px 2px rgba(44,90,160,0.05);
  transition: background 0.2s, color 0.2s;
}
.gallery-tags .badge,
.entry-meta .gallery-tags .badge {
  color: #495057 !important;
  border-color: #adb5bd !important;
}
.gallery-categories .badge:hover,
.entry-meta .gallery-categories .badge:hover {
  background: #2c5aa0 !important;
  color: #fff !important;
  border-color: #2c5aa0 !important;
}
.gallery-tags .badge:hover,
.entry-meta .gallery-tags .badge:hover {
  background: #adb5bd !important;
  color: #fff !important;
  border-color: #495057 !important;
}

/* 
===========================================
СТИЛІ ДЛЯ ЗОБРАЖЕНЬ НОВИН
===========================================
*/

/* Виправлення масштабування зображень новин */
.card-img-top {
  background-color: #ffdd00d9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px;
}

.card-img-top img,
.card-img-top img.w-100,
.card-img-top img.h-100 {
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* Додаткові стилі для кращого відображення */
.card-img-top img {
  transition: transform 0.3s ease;
}

.card-img-top img:hover {
  transform: scale(1.05);
}

/* Стилі для зображень новин на головній сторінці */
.home .card-img-top {
  height: 200px;
}

/* Стилі для зображень новин на сторінці новин */
.news .card-img-top,
.archive .card-img-top,
.category .card-img-top {
  height: 250px;
}

/* Адаптивні стилі для мобільних пристроїв */
@media (max-width: 768px) {
  .card-img-top {
    height: 180px !important;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    height: 160px !important;
  }
}

/* Улучшение видимости иконок в футере */
.site-footer .bi {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer .contact-info .bi {
  color: var(--school-accent) !important;
}

/* Улучшение видимости ссылок в футере */
.site-footer .list-unstyled a {
  color: var(--school-accent) !important;
  transition: color 0.3s ease !important;
}

.site-footer .list-unstyled a:hover {
  color: white !important;
}

/* Улучшение видимости разделителя */
.site-footer hr {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Специальные стили для сердечек в футере */
.site-footer .bi-heart-fill {
  color: inherit !important;
}

.site-footer .bi-heart-fill[style*="color: #0057b7"] {
  color: #0057b7 !important;
}

.site-footer .bi-heart-fill[style*="color: #ffd700"] {
  color: #ffd700 !important;
}

/* Иконки в ссылках футера тоже желтые */
.site-footer .list-unstyled a .bi {
  color: var(--school-accent) !important;
}

.site-footer .list-unstyled a:hover .bi {
  color: white !important;
}

/* Иконки социальных сетей в футере желтые */
.site-footer .social-links .bi {
  color: var(--school-accent) !important;
}

.site-footer .social-links a:hover .bi {
  color: white !important;
}