/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
}

/* Header */
header {
    background-color: #1a1a1a;
    padding: 15px;
    text-align: center;
}
header img {
    max-width: 200px;
    height: auto;
}

/* Main Content */
main {
    padding: 20px;
    text-align: center;
}
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
}
h2 {
    font-size: 1.8em;
    margin: 30px 0;
    color: #eeeeee;
}

/* Gallery */
.gallery .image-container {
    margin-bottom: 20px;
}
.gallery img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.gallery p {
    font-size: 14px;
    color: #ccc;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.related-post {
    width: 150px;
    text-align: center;
}
.related-post img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}
.related-post a {
    text-decoration: none;
    color: #1e90ff;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
}
footer .social-links a {
    margin: 0 5px;
    color: #1e90ff;
    text-decoration: none;
}
footer .social-links a:hover {
    text-decoration: underline;
}
/* General Section Styles */
.comments {
    margin-top: 40px;
    padding: 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
}
.comments h2, .comments h3 {
    color: #eeeeee;
    margin-bottom: 20px;
}

/* Comment Display */
.comment {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 5px;
}
.comment-author {
    font-weight: bold;
    color: #1e90ff;
}
.comment-date {
    color: #aaaaaa;
}
.comment-text {
    color: #cccccc;
    line-height: 1.5;
}

/* Form Styles */
.comment-form {
    margin-top: 20px;
}
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 5px;
    color: #aaaaaa;
    font-size: 0.9em;
}
input, textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #ffffff;
}
input:focus, textarea:focus {
    border-color: #1e90ff;
    outline: none;
}
textarea {
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    background-color: #1e90ff;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #007acc;
}
/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

/* Main Content */
.main-content {
    flex: 3;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Categories */
.categories h2, .related-posts h2 {
    color: #eeeeee;
    margin-bottom: 15px;
}
.categories ul {
    list-style: none;
    padding: 0;
}
.categories li {
    margin-bottom: 10px;
}
.categories a {
    color: #1e90ff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}
.categories a:hover {
    color: #007acc;
}

/* Related Posts */
.related-posts {
    margin-top: 30px;
}
.related-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.related-item img {
    border-radius: 5px;
    margin-right: 10px;
    width: 100px;
    height: 70px;
}
.related-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}
.related-item a:hover {
    color: #1e90ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .main-content, .sidebar {
        flex: 1;
    }
}
.item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item .img {
    margin-bottom: 10px;
}

.item figure {
    margin: 0;
    text-align: center;
}

.item img.thumb {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.item img.thumb:hover {
    transform: scale(1.05);
}

.item figcaption {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.item .title {
    text-align: center;
}

.item .title a {
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.item .title a:hover {
    color: #0056b3;
}
/* Цвет ссылок в сайдбаре (оранжевый) */
.sidebar a {
    color: #FF7043; /* Оранжевый оттенок, который хорошо сочетается с черным фоном */
    text-decoration: none;
}

.sidebar a:hover {
    color: #FF5722; /* Немного темнее при наведении */
    text-decoration: underline;
}

/* Сайдбар адаптация для мобильных устройств */
@media (max-width: 768px) {
    .sidebar {
        position: static; /* Убираем позицию fixed, чтобы сайдбар не фиксировался */
        margin-top: 20px;
    }

    /* Перемещаем сайдбар вниз после поля комментариев */
    .sidebar {
        margin-top: 20px; /* Отступ от комментариев */
        order: 2; /* Перемещаем сайдбар вниз */
    }
}

/* Заголовок для блока Related Posts */
.related-posts h2 {
    color: #FF7043; /* Оранжевый цвет для заголовка */
    font-size: 1.4em;
    margin-bottom: 15px;
    text-align: right; /* Перемещаем в правую часть */
}

/* Стили для каждого поста в Related Posts */
.related-posts .post {
    margin-bottom: 15px;
}

/* Картинки для постов в Related Posts */
.related-posts img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.related-posts img:hover {
    transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Заголовок постов в Related Posts */
.related-posts .post-title {
    font-size: 1.2em;
    color: #FF7043; /* Оранжевый цвет для заголовков постов */
}
/* Основной цвет для всех ссылок */
a {
    color: #FF7043; /* Оранжевый цвет для ссылок */
    text-decoration: none; /* Убираем подчеркивание по умолчанию */
    transition: color 0.3s ease; /* Плавный переход при изменении цвета */
}

/* Цвет ссылки при наведении */
a:hover {
    color: #FF5722; /* Темнее оранжевый при наведении */
    text-decoration: underline; /* Добавляем подчеркивание */
}

/* Цвет для посещенных ссылок */
a:visited {
    color: #E65100; /* Темный оттенок оранжевого */
}

/* Цвет для активных ссылок */
a:active {
    color: #FF3D00; /* Более насыщенный оттенок при клике */
}
