/**
 * News System Styles for Katibaddh Solutions
 * File: css/news-styles.css
 * 
 * Complete styling for news ticker, featured news, news grid, and single articles
 */

/* ===== NEWS TICKER STYLES ===== */
.ticker-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ticker-label {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.ticker-label i {
    margin-right: 8px;
    font-size: 16px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.ticker-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.ticker-item {
    display: flex;
    align-items: center;
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-right: 20px;
}

.ticker-item.active {
    opacity: 1;
}

.ticker-item i {
    margin-right: 10px;
    font-size: 14px;
    color: #ffd700;
}

.ticker-item a {
    color: white;
    text-decoration: none;
    flex: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ticker-item a:hover {
    color: #ffd700;
}

.ticker-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    white-space: nowrap;
}

.ticker-controls {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.ticker-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ticker-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== FEATURED NEWS STYLES ===== */
.featured-news-section {
    padding: 60px 0;
    background: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-main {
    grid-row: span 2;
}

.featured-main .news-image {
    height: 300px;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-badge.company { background: rgba(59, 130, 246, 0.9); }
.category-badge.product { background: rgba(16, 185, 129, 0.9); }
.category-badge.industry { background: rgba(245, 158, 11, 0.9); }
.category-badge.achievement { background: rgba(139, 92, 246, 0.9); }
.category-badge.announcement { background: rgba(239, 68, 68, 0.9); }

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-main .news-title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
}

.news-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-author {
    font-size: 14px;
    color: #64748b;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    transition: color 0.3s ease;
}

.news-card:hover .read-more {
    color: #764ba2;
}

/* ===== NEWS PAGE STYLES ===== */
.news-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.news-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.news-page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.news-filters {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.news-grid-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 48px;
}

.news-tags {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.news-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.load-more-container {
    text-align: center;
    margin: 60px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== SINGLE ARTICLE STYLES ===== */
.single-news-article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 32px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date,
.article-views {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-author-info {
    color: #64748b;
    font-style: italic;
}

.article-featured-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a202c;
    margin: 32px 0 16px;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    background: #f8fafc;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    border-radius: 8px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.article-footer {
    border-top: 2px solid #f1f5f9;
    padding-top: 32px;
}

.article-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.article-share {
    text-align: center;
}

.article-share span {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.related-articles h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== ERROR AND EMPTY STATES ===== */
.article-error,
.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.article-error i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.article-error h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ===== MODAL STYLES ===== */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.news-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-article {
    padding: 24px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .featured-news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-main {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .ticker-wrapper {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .ticker-label {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .news-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .single-news-article {
        padding: 24px 20px;
        margin: 0 16px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-page-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #64748b;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.skeleton-image {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blur-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-strong {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.news-card:focus,
.ticker-controls button:focus,
.share-btn:focus,
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .ticker-wrapper,
    .ticker-controls,
    .share-buttons,
    .related-articles,
    .news-filters,
    .load-more-container {
        display: none !important;
    }
    
    .single-news-article {
        box-shadow: none;
        padding: 0;
    }
    
    .article-content {
        color: #000;
    }
    
    .news-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .news-card,
    .single-news-article,
    .news-filters {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .news-title,
    .article-title {
        color: #f9fafb;
    }
    
    .news-excerpt,
    .news-meta,
    .article-content {
        color: #d1d5db;
    }
    
    .news-tag {
        background: #374151;
        color: #d1d5db;
    }
    
    .category-badge {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
.article-content::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.article-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.article-content::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.article-content::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.news-image img,
.article-featured-image img,
.related-item img {
    will-change: transform;
}

.news-card,
.news-grid-item,
.related-item {
    will-change: transform, box-shadow;
}

/* ===== COMPONENT SPECIFIC FIXES ===== */
.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

.ticker-item.active {
    transform: translateX(0);
}

.ticker-item.prev {
    transform: translateX(-100%);
}

.ticker-item.next {
    transform: translateX(100%);
}

/* Ensure proper spacing for news grid */
.news-grid-container {
    min-height: 400px;
}

.news-grid:empty::after {
    content: "Loading news articles...";
    display: block;
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
    font-style: italic;
}

/* ===== BROWSER COMPATIBILITY ===== */
/* IE11 fallbacks */
@supports not (display: grid) {
    .featured-news-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .news-card {
        width: calc(33.333% - 16px);
        margin: 8px;
    }
    
    .featured-main {
        width: calc(66.666% - 16px);
    }
}

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
    .category-badge {
        -webkit-backdrop-filter: blur(10px);
    }
    
    .glass-effect {
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .news-title,
    .news-excerpt {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: block;
        max-height: 3em;
    }
}