* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: hsl(0, 0%, 98%);
    color: hsl(0, 0%, 15%);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: rgb(47, 26, 69);
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    width: 100px;
    height: 70px;
    margin-right: 20px;
}   

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: hsl(275, 60%, 50%);
}

.search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* Info Bar */
.info-bar {
    background-color: white;
    border-bottom: 1px solid hsl(0, 0%, 90%);
}

.info-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    overflow-x: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    color: hsl(0, 0%, 45%);
}

.weather {
    font-weight: 500;
    color: hsl(0, 0%, 15%);
}

.traffic-icon {
    color: #f97316;
}

.traffic-badge {
    background-color: #f97316;
    color: white;
    border-radius: 9999px;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.info-ticker {
    flex: 1;
    color: hsl(0, 0%, 45%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.news-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-title-secondary {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.news-time {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: hsl(275, 60%, 50%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-category {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: hsl(275, 60%, 50%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content {
    padding: 1rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s;
}

.news-card:hover .news-title {
    color: hsl(275, 60%, 45%);
}

.news-card.large .news-title {
    font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-card.live-card {
    background-color: hsl(0, 84.2%, 60.2%);
    color: white;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: bold;
}

.live-text {
    font-size: 0.875rem;
    margin: 0;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(0, 0%, 90%);
}

.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-category {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.sidebar-category.secondary {
    background-color: hsl(240, 4.8%, 95.9%);
    color: hsl(240, 5.9%, 10%);
}

.sidebar-category.outline {
    background-color: transparent;
    border: 1px solid hsl(240, 5.9%, 90%);
    color: hsl(240, 5.9%, 10%);
}

.sidebar-time {
    color: hsl(240, 3.8%, 46.1%);
    font-size: 0.75rem;
    white-space: nowrap;
}

.sidebar-news-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.3s;
}

.sidebar-news-title:hover {
    color: hsl(275, 60%, 50%);
}

/* Footer */
.footer {
    background-color: hsl(275, 40%, 30%);
    color: white;
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
}

/* Article Page Styles */
.article-header {
    margin-bottom: 2rem;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(275, 60%, 50%);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-back-link:hover {
    color: hsl(275, 60%, 45%);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background-color: hsl(275, 60%, 50%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-time {
    color: hsl(0, 0%, 45%);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.article-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .article-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}