/* blog.css
   Generated starter styles for blog page.
   NOTE: Due to chat output limits this file contains the first complete section.
   Continue in next iteration if needed.
*/

.blog-page{
    padding:70px 0 100px;
}

.blog-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    margin-bottom:48px;
}

.blog-search{
    display:flex;
    gap:12px;
    width:100%;
    max-width:760px;
}

.blog-search__field{position:relative;flex:1;}

.blog-search input{
    width:100%;
    height:54px;
    padding:0 52px 0 18px;
    border:1px solid #e6e6e6;
    outline:none;
    font-family:"PT Mono",monospace;
    font-size:14px;
}

.blog-filter{width:220px;}
.blog-filter__button{
    width:100%;
    height:54px;
    border:none;
    background:#FE9542;
    color:#fff;
    font-family:"PT Mono",monospace;
    cursor:pointer;
}

.blog-body{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:48px;
    align-items:start;
}

.blog-listing__grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:42px 30px;
}

.blog-card{display:flex;flex-direction:column;}

.blog-card__image-wrapper{
    position:relative;
    overflow:hidden;
    aspect-ratio:310/210;
}

.blog-card__image{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s;
}

.blog-card:hover .blog-card__image{
    transform:scale(1.05);
}

.blog-card__tag{
    position:absolute;
    top:12px;
    left:12px;
    background:#fff;
    padding:8px 14px;
    font-family:"PT Mono",monospace;
    font-size:13px;
}

.blog-card__meta{
    display:flex;
    gap:18px;
    margin:14px 0;
    font-size:13px;
}

.blog-card__meta-item{
    display:flex;
    align-items:center;
    gap:5px;
}

.blog-card__title{
    margin:0 0 16px;
    font-size:30px;
    line-height:1;
    font-family:"PT Mono",sans-serif;
}

.blog-card__title a{
    color:#1d2943;
    text-decoration:none;
}

.blog-card__excerpt{
    color:#7b7b7b;
    line-height:1.6;
    margin-bottom:20px;
    flex:1;
}

.blog-card__button{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#FE9542;
    color:#fff;
    padding:13px 22px;
    text-decoration:none;
}

.blog-pagination{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:60px;
}
.blog-pagination a,
.blog-pagination span{
    width:42px;height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #FE9542;
    text-decoration:none;
}
.blog-pagination .current{
    background:#FE9542;
    color:#fff;
}


.blog-single-body {
    display: grid;
    grid-template-columns: 1fr 340px; /* Основной контент занимает остаток, сайдбар фиксирован */
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

/* Стили для Содержания */
.blog-toc {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.blog-toc__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}
.blog-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-toc__item {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
}
.blog-toc__item::before {
    content: "◆"; /* Стилизация маркера из макета */
    position: absolute;
    left: 0;
    color: #FE9542;
    font-size: 10px;
    top: 2px;
}
.blog-toc__link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-toc__link:hover {
    color: #FE9542;
}

/* Блок Интересно */
.blog-interesting {
    background: #FFF3EB; /* Светло-оранжевый фон из макета */
    padding: 24px;
    border-radius: 8px;
}
.blog-interesting__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .blog-single-body {
        grid-template-columns: 1fr; /* На планшетах и мобилках перестраиваем в одну колонку */
    }
}