.second_header{
    background-color: var(--ac);
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 121px;
    width: 100%;
    z-index: 20;
    padding: 8px 0;
    justify-content: space-between;
    transition: top 0.2s ease;
}
.second_header .breadcrumbs{
    margin-left: 40px;
}
.second_header form{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
}
.second_header .search-container{
    display: flex;
    align-items: center;
    position: relative;
}
.second_header .search-container span{
    position: absolute;
    top: 50%;
    z-index: 10;
    left: 10px; /* Расстояние от правого края */
    transform: translateY(-50%);
    pointer-events: none; /* Отключаем события мыши для иконки */
    color: #aaa;
    font-size: 20px;
}
.second_header button{
    /*RESET*/
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
    /*STYLES*/
    background-color: var(--bc);
    color: var(--ac);
    font-size: 18px;
    box-shadow: 0 0 2px 0 black;
    border-radius: 12px;
    height: fit-content;
    cursor: pointer;
    padding: 9px 32px;
}
.second_header .search-container .search-input{
    background-color: var(--bc);
    border: 1px solid var(--ac);
    border-radius: 12px;
    padding: 8px 12px 8px 32px;
    width: 300px;
    height: fit-content;
    font-size: 18px;
}
.second_header .search-container .search-input:focus{
    outline: none; /* Убираем стандартный outline */
    box-shadow: none; /* Убираем стандартную тень */
    background-color: white;

}
.second_header.active{
    top: 95px !important;
    transition: top 0.1s ease;
}

.container{
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 200px;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 48px;
}
/*Categories*/
.categories{
    background-color: var(--bc);
    padding: 16px 32px;
    width: 300px;
    height: fit-content;
    border-radius: 12px;
    box-shadow: 0 0 2px 0 gray;
}
.categories h2{
    margin: 0;
    text-align: center;
}
.categories ul {
    list-style: none;
    padding: 0;
}
.categories li {
    position: relative;
    margin-bottom: 10px; 
}
.categories a{
    font-size: 18px;
    color: black;
    text-decoration: none;
    flex-basis: 48%;
}

.blog-body{
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
}
.blog-header{
    text-align: center;
    padding: 8px;
    box-shadow: 0 0 2px 0 black;
    border-radius: 12px;
}
.posts-list{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.not_found{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.post{
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 450px;
}
.post .main_image{
    width: 450px;
    height: 225px;
    object-fit: cover;
    border-radius: 12px;
}
.post .post-info{
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.post .post-info .post-header{
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}
.post .post-info .post-header > div{
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    font-family: "Open Sans", sans-serif;
    color: var(--light-main);
}

.post .post-info .post-body{
    display: flex;
    flex-direction: column;
    gap: 12px;    
}
.post .post-info .post-body .title{
    font-size: 24px;
    font-weight: 500;
}
.post .post-info .post-body p{
    font-size: 18px;
    margin: 0;
}
.post .post-info .post-body a{
    color: var(--ac);
}
@media screen and (max-width: 1306px) {
    .post{
        max-width: 350px;
    }
    .post .main_image{
        width: 350px;
        height: 180px;
    }
}

@media screen and (max-width: 982px) {
    .second_header{
        flex-direction: column;
        align-items: center;
    }
    .second_header form{
        flex-direction: column;
        align-items: center;
        margin: 0
    }
    .container{
        flex-direction: column;
        align-items: center;
        margin-top: 300px;
    }
    .categories{
        width: 90%;
    }
    .categories a{
        flex-basis: 95%;
    }
    .blog-header{
        width: 90%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .posts-list{
        gap: 32px;
    }
    .post{
        max-width: 600px;
    }
    .post .main_image{
        width: 600px;
        height: 300px;
    }
}
@media screen and (max-width: 630px) {
    .categories a{
        flex-basis: 80%;
    }
    .categories{
        width: 80%;
    }
    .container{
        margin-left: 12px;
        margin-right: 12px;
    }
    .post{
        max-width: 380px;
    }
    .post .main_image{
        width: 380px;
        height: 200px;
    }
}
@media screen and (max-width: 500px) {
    .post{
        max-width: 360px;
    }
    .post .main_image{
        width: 360px;
        height: 180px;
    }
}