* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.navigation a:hover,
.navigation a.active {
    color: #2563eb;
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

.navigation a i {
    margin-right: 5px;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

.content-box {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.content-box h2,
.content-box h3 {
    font-weight: 700;
    color: #000000;
    text-align: left;
    margin-bottom: 20px;
}

.content-box h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-box h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* Top Stories Section */
.top-stories .content-box {
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.news-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-item.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 20px;
}

.news-content h3,
.news-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.news-content h4 {
    font-size: 1rem;
}

.news-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.news-meta .time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta .source {
    font-weight: 600;
    color: #475569;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-list .news-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

.news-list .news-content {
    padding: 0;
    flex: 1;
}

/* Secondary Content Section */
.secondary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.secondary-content .content-box {
    text-align: center;
    margin-bottom: 0;
}

.secondary-content .content-box h3 {
    text-align: center;
    margin-bottom: 25px;
}

/* Live News Styles */
.live-news {
    text-align: left;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.live-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.live-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.live-item .time {
    font-weight: 600;
    color: #dc2626;
    font-size: 0.9rem;
    min-width: 50px;
}

.live-item p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Opinion Writers Styles */
.opinion-writers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.writer-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.writer-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(5px);
}

.writer-avatar {
    flex-shrink: 0;
}

.writer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.writer-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.writer-title {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.writer-opinion {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    font-style: italic;
}

/* Footer Bar */
.footer-bar .content-box {
    height: auto;
    padding: 20px 40px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #6b7280;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px 0;
}

.page-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.articles-content {
    margin-bottom: 10px;
}

/* Enhanced live-item styles for RSS articles */
.live-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.live-item:hover {
    background-color: #f9fafb;
    padding-left: 10px;
    border-radius: 6px;
}

.live-item:last-child {
    border-bottom: none;
}

.live-item .time {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.live-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    flex: 1;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    
    .page-btn {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .live-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .live-item .time {
        align-self: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .navigation ul {
        gap: 20px;
    }
    
    .secondary-content {
        grid-template-columns: 1fr;
    }
    
    .content-box {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item.featured {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .content-box {
        padding: 25px 15px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .writer-item {
        flex-direction: column;
        text-align: center;
    }
    
    .live-item {
        flex-direction: column;
        gap: 8px;
    }
}
