/**
 * Стили для страницы отдельной новости
 *
 * @package Empty_Theme
 */

.single-news-container {
    padding: 60px 0;
    background-color: transparent;
    position: relative;
    margin-top: 140px;
}

.single-news-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.single-news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.5s ease;
}

.single-news-header:hover .single-news-thumbnail {
    filter: brightness(0.8);
}

.single-news-title-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    box-sizing: border-box;
}

.single-news-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.single-news-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.single-news-date {
    margin-right: 20px;
}

.single-news-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-news-content h2, 
.single-news-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0071CE;
}

.single-news-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.news-nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.news-nav-prev,
.news-nav-next {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0071CE;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 113, 206, 0.2);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.news-nav-prev:hover,
.news-nav-next:hover {
    background-color: #005da7;
    box-shadow: 0 5px 15px rgba(0, 113, 206, 0.3);
    transform: translateY(-2px);
}

.news-back-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.news-back-button:hover {
    background-color: #555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .single-news-container {
        margin-top: 120px;
    }

    .single-news-header {
        height: 300px;
    }

    .single-news-title {
        font-size: 24px;
    }

    .single-news-title-container {
        padding: 20px;
    }

    .single-news-content {
        padding: 25px;
    }

    .news-nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .news-nav-prev,
    .news-nav-next {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .single-news-header {
        height: 250px;
    }

    .single-news-title {
        font-size: 20px;
    }

    .single-news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .single-news-date {
        margin-right: 0;
    }

    .single-news-content {
        padding: 20px;
        font-size: 15px;
    }

    .news-nav-prev,
    .news-nav-next {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
}
