/* --- Layout --- */
.dp-blog-page-section {
    padding: 60px 20px;
    background-color: #fff;
    min-height: 600px;
}

.dp-blog-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

/* --- Sidebar --- */
.dp-sidebar {
    width: 25%;
    min-width: 250px;
    padding-top: 10px;
}

.dp-widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'PP Fraktion Sans', sans-serif;
}

.dp-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dp-menu-item {
    margin-bottom: 12px;
}

/* FIXED: Добавлена специфичность .dp-sidebar, чтобы не ломать хедер */
.dp-sidebar .dp-menu-link {
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block; /* Этот стиль теперь безопасен для хедера */
    padding: 5px 0;
}

.dp-sidebar .dp-menu-link:hover,
.dp-sidebar .dp-menu-link.active {
    color: #000;
    font-weight: 500;
}

/* --- Main Content --- */
.dp-blog-main {
    flex: 1;
}

.dp-page-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 30px;
    font-family: 'PP Fraktion Sans', sans-serif;
}

/* --- Search Bar --- */
.dp-search-wrapper {
    margin-bottom: 50px;
    position: relative;
    max-width: 100%;
}

.dp-search-form {
    position: relative;
    width: 100%;
}

.dp-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.dp-search-input:focus {
    border-color: #000;
}

.dp-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 5px;
}

.dp-search-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Articles Grid (Thumb Side Layout) --- */
.dp-articles-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dp-article-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.dp-article-card:last-child {
    border-bottom: none;
}

.dp-article-img-link {
    width: 40%;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    border-radius: 20px;
}

.dp-article-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dp-article-card:hover .dp-article-img {
    transform: scale(1.05);
}

.dp-article-content {
    flex: 1;
    padding-top: 10px;
}

.dp-article-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.dp-article-title a {
    text-decoration: none;
    color: #000;
    font-family: 'PP Fraktion Sans', sans-serif;
}

.dp-article-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dp-read-more {
    text-decoration: underline;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .dp-blog-container {
        flex-direction: column;
        gap: 40px;
    }

    .dp-sidebar {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .dp-article-card {
        flex-direction: column;
        gap: 20px;
    }

    .dp-article-img-link {
        width: 100%;
    }
}