/* ============================================
   NEWS PAGE STYLES
   ============================================ */
/* Breadcrumbs Section */
.breadcrumbs-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.breadcrumbs a:hover {
    background: rgba(0, 93, 239, 0.1);
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.breadcrumbs .separator {
    margin: 0 0.25rem;
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* ============================================
   NEWS PAGE STYLES
   ============================================ */

/* Page Header */
.news-page .page-header {
    padding: 1rem 0 2rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
    margin-bottom: 0;
    text-align: left;
}

/* Breadcrumbs - используем стили из loans.css */

/* News Single Page */
.news-single-section {
    padding: 2rem 0;
}

.news-single-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.news-single-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(to right, rgba(33, 150, 243, 0.02), rgba(25, 118, 210, 0.01));
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.news-meta i {
    color: var(--primary-color);
}

.news-single-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.news-single-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.news-single-content p {
    margin-bottom: 1.5rem;
}

.news-single-content h2, 
.news-single-content h3, 
.news-single-content h4 {
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}

.news-single-content ul, 
.news-single-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.news-single-content li {
    margin-bottom: 0.5rem;
}

.news-single-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-tag {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.news-tag:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-weight: 600;
    color: var(--gray-700);
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.share-btn:nth-child(2):hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn:nth-child(3):hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-btn:nth-child(4):hover { background: #0088cc; color: white; border-color: #0088cc; }
.share-btn:nth-child(5):hover { background: #4C75A3; color: white; border-color: #4C75A3; }

/* Related News */
.related-news-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.related-news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.related-news-title {
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

.related-news-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.related-news-title a:hover {
    color: var(--primary-color);
}

/* News Not Found */
.news-not-found-section {
    padding: 4rem 0;
    text-align: center;
}

.not-found-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
}

.not-found-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.not-found-card h2 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.not-found-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* News List Page */
.news-list-section {
    padding: 2rem 0;
}

.news-list-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-header-content {
    flex: 1;
    min-width: 300px;
}

.news-list-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.news-list-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

.news-filters {
    flex-shrink: 0;
}

.archive-dropdown {
    position: relative;
}

.archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.archive-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.archive-btn i {
    font-size: 1rem;
}

.archive-calendar {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow-lg);
    z-index: 1000;
    display: none;
    min-width: 250px;
}

.archive-calendar.show {
    display: block;
}

.calendar-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.clear-date-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    color: var(--gray-700);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.clear-date-btn:hover {
    background: var(--gray-200);
}

/* News List */
.news-list-container {
    margin-bottom: 3rem;
}

.news-date-group {
    margin-bottom: 2.5rem;
}

.date-header {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.date-header i {
    font-size: 1rem;
}

.news-items-container {
    display: grid;
    gap: 1rem;
}

.news-item-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.news-item-card:hover {
    transform: translateX(4px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.news-item-meta {
    margin-bottom: 0.75rem;
}

.news-item-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.news-item-time i {
    color: var(--primary-color);
}

.news-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-item-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.news-item-title a:hover {
    color: var(--primary-color);
}

.news-item-excerpt {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.news-read-more:hover {
    gap: 0.75rem;
}

.news-read-more i {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.news-read-more:hover i {
    transform: translateX(2px);
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.news-empty-state h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.news-empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.news-pagination {
    margin-top: 3rem;
}

.news-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover:not(.disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.page-number:hover:not(.active) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.page-number.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-dots {
    padding: 0 0.5rem;
    color: var(--gray-500);
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-single-title {
        font-size: 1.75rem;
    }
    
    .news-list-title {
        font-size: 1.75rem;
    }
    
    .news-single-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-share {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .news-single-section,
    .news-list-section {
        padding: 1.5rem 0;
    }
    
    .news-single-header,
    .news-single-content {
        padding: 1.5rem;
    }
    
    .news-single-title {
        font-size: 1.5rem;
    }
    
    .news-list-header {
        flex-direction: column;
    }
    
    .news-header-content {
        width: 100%;
    }
    
    .archive-dropdown {
        align-self: flex-start;
    }
    
    .archive-calendar {
        right: auto;
        left: 0;
    }
    
    .news-item-title {
        font-size: 1.125rem;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-meta {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .news-single-title {
        font-size: 1.3rem;
    }
    
    .news-single-header,
    .news-single-content {
        padding: 1.25rem;
    }
    
    .news-list-title {
        font-size: 1.5rem;
    }
    
    .date-header {
        padding: 0.625rem 1rem;
        font-size: 1rem;
    }
    
    .news-item-card {
        padding: 1.25rem;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .page-link.prev {
        order: 1;
    }
    
    .page-link.next {
        order: 2;
    }
    
    .news-pagination .pagination {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    .news-single-footer,
    .related-news-section,
    .news-filters,
    .news-pagination {
        display: none;
    }
    
    .news-single-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

.news-date-time {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.news-date-time i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* Рекомендуемые новости - только плашки с датой */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.related-news-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.related-date,
.related-time {
    color: var(--gray-700);
    font-size: 0.9rem;
    display: block;
}

.related-date {
    font-weight: 600;
}

/* Футер без тегов */
.news-single-footer {
    justify-content: flex-end;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Адаптивность для рекомендаций */
@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .related-news-card {
        padding: 0.75rem;
    }
}

/* Рекомендуемые новости - с заголовками */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    height: 100%;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.related-news-meta {
    margin-bottom: 0.75rem;
}

.related-date-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.related-date-time i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* Для разделения даты и времени - добавляем отступ для часов */
.related-date-time .fa-clock {
    margin-left: 15px !important;
}

.related-news-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--gray-900);
    font-weight: 600;
}

.related-news-card:hover .related-news-title {
    color: var(--primary-color);
}

/* Стиль для случая, когда нет рекомендуемых новостей */
.no-related-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
    font-style: italic;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px dashed var(--gray-300);
}

/* Адаптивность для рекомендаций */
@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .related-news-card {
        padding: 1.25rem;
    }
    
    .related-date-time {
        font-size: 0.85rem;
    }
    
    .related-news-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-news-card {
        padding: 1rem;
    }
    
    .related-date-time {
        font-size: 0.8rem;
    }
    
    .related-date-time .fa-clock {
        margin-left: 10px !important;
    }
}