body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.footer {
    margin-top: auto;
    background-color: #212529;
    color: #fff;
    padding: 2rem 0;
}

.news-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.news-item .card-title a:hover {
    color: #0d6efd !important;
}

.news-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.news-meta a {
    color: #6c757d;
}

.news-meta a:hover {
    color: #0d6efd;
}

.sidebar {
    border: none;
}

.sidebar .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.sidebar ul li a {
    color: #495057;
    transition: color 0.2s;
}

.sidebar ul li a:hover {
    color: #0d6efd;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 1.5rem;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-badge:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-1px);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.news-content p {
    margin-bottom: 1rem;
}

/* Улучшения дизайна */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-img-top {
    border-radius: 0.5rem 0.5rem 0 0;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Улучшение breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item:first-child a::before {
    content: "🏠";
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* Breadcrumbs для админки */
.admin-content .breadcrumb {
    background-color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.admin-content .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* Улучшение пагинации */
.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Admin Layout Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 1.5rem 1rem;
    background-color: #212529;
    border-bottom: 1px solid #495057;
}

.admin-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-sidebar .nav {
    padding: 1rem 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: #495057;
    border-left-color: #0d6efd;
}

.admin-main {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

.admin-main.sidebar-collapsed {
    margin-left: 0;
}

.admin-topbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-topbar #sidebarToggle {
    padding: 0.5rem;
}

.admin-topbar #sidebarToggle:hover {
    background-color: #495057;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .admin-sidebar {
        margin-left: -250px;
    }
    
    .admin-sidebar.active {
        margin-left: 0;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-main.sidebar-collapsed .admin-sidebar {
        margin-left: -250px;
    }
}

/* Исправление для оверлея изображения в новости */
.card .position-relative {
    overflow: hidden;
}

.card .position-relative img {
    position: relative;
    z-index: 1;
    display: block;
}

.card .position-absolute {
    z-index: 2;
}


