:root {
    --bg-color: #f4f7f6;
    --text-color: #2c3e50;
    --header-bg: #ffffff;
    --accent: #d32f2f;
    --card-bg: #ffffff;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1f1f1f;
    --card-bg: #2a2a2a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: 0.3s;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header & Search */
header {
    background: var(--header-bg);
    padding: 15px 0;
    border-bottom: 4px solid var(--accent);
    position: sticky; top: 0; z-index: 1000;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 800; color: var(--accent); cursor: pointer; }

.search-bar {
    display: flex; background: var(--bg-color);
    border: 1px solid #ddd; border-radius: 20px; padding: 5px 15px;
}
.search-bar input { border: none; background: transparent; color: var(--text-color); outline: none; }
.search-bar button { background: transparent; border: none; cursor: pointer; }

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--text-color); font-weight: 600; }

#theme-toggle { background: var(--accent); color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; }

/* Slider & Sidebar */
.headline { display: flex; gap: 20px; margin: 30px 0; }
.slider-container { position: relative; flex: 3; height: 450px; border-radius: 12px; overflow: hidden; }
.slide { display: none; height: 100%; }
.slide.active { display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-content { position: absolute; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; padding: 30px; width: 100%; }

.sidebar { flex: 1; background: var(--card-bg); padding: 20px; border-radius: 12px; }
.top-list { list-style: none; padding: 0; }
.top-list a { text-decoration: none; color: var(--text-color); display: flex; gap: 10px; margin-bottom: 15px; transition: 0.2s; }
.top-list a:hover { color: var(--accent); transform: translateX(5px); }
.number { background: var(--accent); color: white; padding: 2px 8px; border-radius: 4px; font-weight: bold; }

/* News Detail */
.article-container { max-width: 800px; background: var(--card-bg); padding: 40px; border-radius: 12px; margin-top: 30px; }
.featured-image { width: 100%; border-radius: 8px; margin: 20px 0; }
.article-content { line-height: 1.8; font-size: 18px; }
blockquote { border-left: 5px solid var(--accent); padding-left: 20px; font-style: italic; font-size: 22px; margin: 20px 0; }

/* Footer & Other */
.ticker-container { background: #000; color: #fff; display: flex; align-items: center; height: 40px; }
.ticker-label { background: var(--accent); padding: 0 15px; font-weight: bold; height: 100%; display: flex; align-items: center; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: var(--card-bg); border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; }
footer { text-align: center; padding: 30px; margin-top: 50px; background: var(--header-bg); }