:root {
    --primary: #e31e24;
    --secondary: #1a1a1a;
    --text-main: #333;
    --text-light: #666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --border-color: #eee;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
}

[data-theme="dark"] {
    --secondary: #f4f4f4;
    --text-main: #eee;
    --text-light: #aaa;
    --bg-light: #121212;
    --white: #1e1e1e;
    --border-color: #333;
}

/* Visibility Utilities */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

/* Header Styling */
.site-header { width: 100%; }

/* Layer 1: Top Bar (Black) */
.header-top-bar {
    background: #111;
    color: #fff;
    font-size: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.top-bar-flex { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Layer 2: Main Area (Red) */
.header-main-area {
    background: #c62828;
    padding: 10px 0;
    color: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
}
.header-main-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.site-logo .text-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.site-logo .text-logo span { font-weight: 400; opacity: 0.9; }

/* Search Bar */
.header-search { flex: 1; max-width: 400px; }
.header-search form { position: relative; }
.header-search input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.7); }
.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Ad Area */
.ad-placeholder {
    background: #fff;
    color: #333;
    height: 50px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

/* Weather */
.header-weather { 
    background: rgba(255,255,255,0.15); 
    padding: 8px 15px; 
    border-radius: 6px; 
    font-size: 11px;
    transition: 0.3s;
}
.header-weather:hover { background: rgba(255,255,255,0.25); }

/* Mobile Menu & Buttons */
.mobile-only button, .mobile-only a {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 20px;
}

/* Navigation */
.main-navigation { background: #fff; border-bottom: 1px solid #eee; }
.main-menu { list-style: none; display: flex; gap: 25px; padding: 12px 0; margin: 0; }
.main-menu a { font-weight: 700; font-size: 14px; text-transform: uppercase; color: #333; }
.main-menu a:hover { color: var(--primary); }

/* Mobile Sub Header */
.mobile-sub-header { background: #1a1a1a; }
.mobile-sub-header .header-finance { padding: 10px 15px; background: #222; border-top: 1px solid #333; }


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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
}
.ticker-label {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    margin-right: 15px;
}

/* Grid System */
.news-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Components */
.card { background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 15px; }
.card-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; line-height: 1.3; }

/* Headline Slider (Placeholder) */
.main-headline { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 30px; }
.headline-big { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.headline-big img { width: 100%; height: 100%; object-fit: cover; }
.headline-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}
.headline-title { font-size: 28px; font-weight: bold; }

@media (max-width: 768px) {
    .main-headline { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
