body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url('https://incram.com/img/3932bc94-7180-4b9f-a9ca-0edb1c9abc24.jpg') repeat;
    background-size: 300px 300px;
    color: #333;
}

/* Убираем отступы у контейнеров */
.container, .main-container {
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.filter-section {
    position: sticky;
    top: 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    padding: 20px;
}

.block {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.block:hover {
    transform: translateY(-2px);
}

.theme {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.offer-link {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9rem;
}

.offer-link:hover {
    text-decoration: underline;
}

.offer-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

@media (max-width: 992px) {
    .sidebar {
        position: relative;
        min-height: auto;
    }
}

/* Add these styles to the existing CSS file */
.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.bi {
    margin-right: 5px;
}


/* Add animation for the copy confirmation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-outline-primary i {
    animation: fadeIn 0.3s ease;
}

/* Latest Topics Section */
.latest-topics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    border-bottom: 2px solid #dee2e6;
}

.latest-topics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-topics-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.latest-topics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow: hidden;
}

.topic-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.topic-item.slide-out {
    transform: translateY(-100%);
    opacity: 0;
    margin-bottom: -60px;
}

.topic-item.slide-in {
    transform: translateY(100%);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 15px;
}

.topic-date, .topic-partner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-link {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid #667eea;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.topic-link:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .latest-topics-title {
        font-size: 16px;
    }

    .topic-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .topic-title {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .topic-meta {
        align-self: flex-start;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}