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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #c4170c;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .subtitle {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 250px;
    font-size: 14px;
}

.search-box button {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
}

/* Market Ticker */
.market-ticker {
    background: #1a1a1a;
    color: white;
    padding: 12px 0;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.ticker-name {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.7;
}

.ticker-value {
    font-weight: 700;
    font-size: 14px;
}

.ticker-change {
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

.ticker-change.positive {
    background: #0f9d58;
    color: white;
}

.ticker-change.negative {
    background: #db4437;
    color: white;
}

/* Main Content */
main {
    padding: 20px 20px 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 30px;
}

.featured-content h2 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

.featured-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 10px 0;
}

.category {
    background: #c4170c;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time {
    font-size: 12px;
    opacity: 0.7;
    display: inline-block;
    margin-top: 5px;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

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

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

.featured-item-content {
    padding: 15px;
}

.featured-item-content h3 {
    font-size: 16px;
    margin: 8px 0;
    font-weight: 600;
    line-height: 1.4;
}

/* News Section */
.news-section {
    margin-top: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c4170c;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.news-meta {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Stock List */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    background: #f8f8f8;
    transition: background 0.3s;
}

.stock-item:hover {
    background: #f0f0f0;
}

.stock-info {
    display: flex;
    flex-direction: column;
}

.stock-symbol {
    font-weight: 700;
    font-size: 14px;
}

.stock-name {
    font-size: 12px;
    color: #666;
}

.stock-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-weight: 700;
    font-size: 14px;
}

.change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 3px;
}

.change.positive {
    background: #e8f5e9;
    color: #0f9d58;
}

.change.negative {
    background: #ffebee;
    color: #db4437;
}

/* Currency List */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    background: #f8f8f8;
}

.currency-name {
    font-size: 14px;
    font-weight: 600;
}

.currency-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chart */
.chart-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f8f8;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Most Read */
.most-read-list {
    list-style: none;
    counter-reset: most-read;
}

.most-read-list li {
    counter-increment: most-read;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 35px;
}

.most-read-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.most-read-list li::before {
    content: counter(most-read);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: #c4170c;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.most-read-list a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.most-read-list a:hover {
    color: #c4170c;
}

.views {
    font-size: 12px;
    color: #999;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ticker-items {
        gap: 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.3s ease-in;
}
