:root {
    --bs-primary: #5C9EAD;
    --bs-secondary: #E6B89C;
    --bs-light: #F8F5F2;
    --bs-border-color: #E8E8E8;
    --bs-success: #88A096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #4A4A4A;
    background-color: white;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #3C3C3C;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #4a8b9c;
    --bs-btn-hover-border-color: #4a8b9c;
    --bs-btn-active-bg: #3c7a8a;
    --bs-btn-active-border-color: #3c7a8a;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warm {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #3C3C3C;
}

.btn-warm:hover {
    background-color: #d4a574;
    border-color: #d4a574;
    color: #3C3C3C;
}

.section-padding {
    padding: 60px 0;
}

/* Шапка блога */
.blog-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, rgba(248, 245, 242, 0.9) 0%, rgba(232, 232, 232, 0.2) 100%);
    margin-bottom: 40px;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
}

/* Карточка статьи */
.article-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-category.psychology {
    background-color: rgba(92, 158, 173, 0.1);
    color: var(--bs-primary);
}

.article-category.communication {
    background-color: rgba(230, 184, 156, 0.1);
    color: #b37247;
}

.article-category.selfhelp {
    background-color: rgba(136, 160, 150, 0.1);
    color: var(--bs-success);
}

.article-category.community {
    background-color: rgba(147, 112, 219, 0.1);
    color: #9370DB;
}

.article-meta {
    color: #777;
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
}

.article-excerpt {
    color: #666;
    line-height: 1.7;
}

.read-more {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: #4a8b9c;
}

/* Боковая панель */
.sidebar-widget {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-border-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(92, 158, 173, 0.1);
    color: var(--bs-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--bs-primary);
    color: white;
}

.popular-post {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.popular-post-meta {
    font-size: 0.85rem;
    color: #777;
}

/* Пагинация */
.pagination {
    justify-content: center;
    margin-top: 50px;
}

.page-link {
    color: var(--bs-primary);
    border: 1px solid var(--bs-border-color);
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
}

.page-link:hover {
    background-color: rgba(92, 158, 173, 0.1);
    border-color: var(--bs-primary);
}

.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Форма подписки */
.subscribe-form {
    background: linear-gradient(135deg, rgba(92, 158, 173, 0.1) 0%, rgba(136, 160, 150, 0.1) 100%);
    border-radius: 12px;
    padding: 30px;
}

.subscribe-form .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid var(--bs-border-color);
}

.subscribe-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(92, 158, 173, 0.25);
}

/* Футер */
footer {
    background-color: var(--bs-light);
    border-top: 1px solid var(--bs-border-color);
    margin-top: 60px;
}

.nav-link {
    color: #4A4A4A;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--bs-primary);
}

.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary) !important;
}

/* Автор */
.author-bio {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: rgba(248, 245, 242, 0.5);
    border-radius: 12px;
    margin-top: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #3C3C3C;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Горячая статья */
.featured-article {
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #5C9EAD 0%, #88A096 100%);
    color: white;
    margin-bottom: 40px;
}

.featured-content {
    padding: 40px;
}

.featured-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}