* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.navbar {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.navbar a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #34495e;
    text-decoration: none;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.sidebar {
    flex: 1 1 25%;
    background: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    min-width: 220px;
    position: sticky;
    top: 80px;
    align-start: flex-start;
}

.sidebar h5 {
    margin-bottom: 15px;
    font-size: 19px;
    color: #2c3e50;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #e74c3c;
}

.content {
    flex: 1 1 70%;
    background: white;
    padding: 20px;
    border-radius: 5px;
    min-width: 280px;
}

.list-articles {
    list-style: none;
}

.list-articles li {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.list-articles h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.link-read-post a {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.link-read-post a:hover {
    text-decoration: underline;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar,
    .content {
        flex: 1 1 100%;
п        min-width: auto;
    }

    .navbar .container {
        justify-content: center;
    }

    .navbar a {
        display: inline-block;
        margin: 8px 10px;
    }
}

.post-meta {
    text-align: center;
    margin-bottom: 10px;
}

.post-category, .post-date {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 12px;
    margin: 0 5px;
    color: #333;
    font-size: 14px;
}

.post-photo {
    width: 250px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.post-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.form-input {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.form-error {
    color: #d9534f;
    font-size: 16px;
    margin-top: -10px;
    margin-bottom: 10px;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.list-pages ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.page-num a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ecf0f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.page-num a:hover {
    background-color: #d0d7de;
    color: black;
}

.page-num a.active {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.prev-button,
.next-button {
    font-weight: bold;
    background-color: #f0f0f0;
}

.prev-button:hover,
.next-button:hover {
    background-color: #ccc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.btn-submit {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #34495e;
}

.form-error {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 5px;
}
