/* ===== SINGLE POST — ОБНОВЛЁННЫЙ СТИЛЬ ===== */
.single-post {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    min-height: 100vh;
}

.single-post .container {
    max-width: 1080px; /* увеличено до 1280px */
    margin: 0 auto;
    padding: 0 20px;
}

/* Карточка записи — без тени */
.single-post article {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 60px;
    margin-top: 60px;
    /* тени и transition убраны */
}

/* Заголовок */
.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Цвета для заголовка и мета-элементов в зависимости от рубрики */
.category-school-life .post-title {
    background: linear-gradient(135deg, var(--purple) 0%, #7b2eda 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-site-magazine .post-title {
    background: linear-gradient(135deg, #ffcc29 0%, #ffb800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Мета-информация */
.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    font-size: 16px;
}

.category-school-life .post-meta i,
.category-school-life .post-meta a {
    color: var(--purple);
}

.category-site-magazine .post-meta i,
.category-site-magazine .post-meta a {
    color: #ffcc29;
}

.post-meta a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.post-meta a:hover {
    color: #ffcc29; /* при наведении можно оставить жёлтый для обеих рубрик, или изменить */
}

/* Миниатюра */
.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент */
.post-content {
    font-size: 18px;
    line-height: 1.9;
    color: #2d3e50;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 25px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

/* Полоска под h2 — цвет зависит от рубрики */
.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    border-radius: 2px;
}

.category-school-life .post-content h2::after {
    background: linear-gradient(90deg, var(--purple), #7b2eda);
}

.category-site-magazine .post-content h2::after {
    background: linear-gradient(90deg, #ffcc29, #ffb800);
}

.post-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content a {
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.category-school-life .post-content a {
    color: var(--purple);
}
.category-school-life .post-content a:hover {
    border-bottom-color: var(--purple);
}

.category-site-magazine .post-content a {
    color: #ffcc29;
}
.category-site-magazine .post-content a:hover {
    border-bottom-color: #ffcc29;
}

.post-content ul,
.post-content ol {
    margin: 30px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid;
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 20px;
    color: #2d3e50;
    position: relative;
}

.category-school-life .post-content blockquote {
    border-left-color: var(--purple);
}

.category-site-magazine .post-content blockquote {
    border-left-color: #ffcc29;
}

.post-content blockquote::before {
    content: '\201C';
    font-size: 60px;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 15px;
}

.category-school-life .post-content blockquote::before {
    color: var(--purple);
}

.category-site-magazine .post-content blockquote::before {
    color: #ffcc29;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-content .wp-caption {
    max-width: 100%;
    margin: 30px 0;
}

.post-content .wp-caption-text {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

/* Подвал записи */
.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eaeef2;
}

/* Навигация между записями */
.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 50%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #e9ecef;
}

.nav-previous a::before {
    content: '← ';
    font-weight: 400;
}

.nav-next a::after {
    content: ' →';
    font-weight: 400;
}

/* Теги */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.post-tags a {
    background: #f0f2f5;
    color: #2d3e50;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: var(--purple);
    color: white;
}

.category-site-magazine .post-tags a:hover {
    background: #ffcc29;
    color: #111;
}

/* Адаптив */
@media (max-width: 768px) {
    .single-post article {
        padding: 30px 20px;
    }
    .post-title {
        font-size: 36px;
    }
    .post-meta {
        flex-direction: column;
        gap: 15px;
    }
    .post-content {
        font-size: 16px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
}