/* Modern News Styles */

/* Search Result Header */
.modern-search-result-header {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #f82c23;
}

.modern-search-result-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-search-result-header i {
    color: #f82c23;
    font-size: 22px;
}

/* News Grid */
.modern-news-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12.5px;
}

.modern-news-item {
    padding: 0 12.5px 25px 12.5px;
    animation: fadeInUp 0.6s ease;
}

.modern-news-card-link {
    text-decoration: none;
    display: block;
}

.modern-news-card-link:hover {
    text-decoration: none;
}

.modern-news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(248, 44, 35, 0.2);
}

.modern-news-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.modern-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-news-card:hover .modern-news-image {
    transform: scale(1.1);
}

.modern-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.modern-news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-news-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modern-news-meta i {
    color: #f82c23;
}

.modern-news-summary {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.modern-news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.modern-news-tags i {
    color: #6c757d;
    font-size: 14px;
}

.modern-news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #4a5568;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-news-card:hover .modern-news-tag {
    background: #f82c23;
    color: white;
}

.modern-news-read-more {
    color: #f82c23;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modern-news-read-more i {
    transition: transform 0.3s ease;
}

.modern-news-card:hover .modern-news-read-more i {
    transform: translateX(5px);
}

/* Empty State */
.modern-empty-state {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.modern-empty-state i {
    font-size: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.modern-empty-state h3 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modern-empty-state p {
    color: #6c757d;
    font-size: 16px;
}

/* Pagination */
.modern-pagination-wrapper {
    margin-top: 40px;
}

.modern-pagination {
    display: inline-flex !important;
    gap: 8px;
}

.modern-pagination li a {
    padding: 10px 18px;
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-pagination li a:hover {
    background: #f82c23;
    color: white;
    border-color: #f82c23;
    transform: translateY(-2px);
}

.modern-pagination li.active a {
    background: linear-gradient(135deg, #f82c23 0%, #e02318 100%);
    color: white;
    border-color: #f82c23;
}

.modern-pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.modern-sidebar {
    position: sticky;
    top: 100px;
}

.modern-sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-sidebar-widget:hover {
    box-shadow: 0 6px 20px rgba(248, 44, 35, 0.15);
}

.modern-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #f82c23;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-widget-title i {
    color: #f82c23;
    font-size: 20px;
}

/* Search Box */
.modern-search-box {
    margin-bottom: 0;
}

.modern-search-input {
    border: 2px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modern-search-input:focus {
    border-color: #f82c23;
    box-shadow: 0 0 0 3px rgba(248, 44, 35, 0.1);
}

.modern-search-btn {
    background: linear-gradient(135deg, #f82c23 0%, #e02318 100%);
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.modern-search-btn:hover {
    background: linear-gradient(135deg, #e02318 0%, #c01d14 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 44, 35, 0.3);
}

/* Tags */
.modern-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modern-tag-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #4a5568;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-tag-btn:hover {
    background: #f82c23;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 44, 35, 0.3);
    text-decoration: none;
}

/* Twitter Feed */
.modern-twitter-feed {
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .modern-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .modern-news-title {
        font-size: 16px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .modern-news-item {
        margin-bottom: 20px;
    }
    
    .modern-news-image-wrapper {
        height: 200px;
    }
    
    .modern-news-content {
        padding: 20px;
    }
    
    .modern-sidebar-widget {
        padding: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

