:root {
    /* Color Palette */
    --primary-color: #d32f2f; /* Red */
    --text-main: #111111; /* Black */
    --text-light: #555555;
    --text-muted: #888888;
    --bg-main: #ffffff; /* White */
    --bg-secondary: #f4f4f4;
    --bg-dark: #222222;
    --border-color: #eaeaea;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-main: #f0f0f0;
    --text-light: #cccccc;
    --text-muted: #aaaaaa;
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --bg-dark: #000000;
    --border-color: #333333;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.3;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social a {
    color: #ccc;
    margin-left: 15px;
}

.top-social a:hover {
    color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
}

.logo-link h1 span {
    color: var(--primary-color);
}

.header-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.search-container input {
    border: none;
    padding: 8px 15px;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.search-container button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-muted);
}

.theme-toggle, .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
}

/* Main Nav */
.main-nav {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-links li a {
    display: block;
    padding: 15px 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-links li a.active, .nav-links li a:hover {
    color: var(--primary-color);
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 15px;
    border-radius: 2px;
    z-index: 2;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    margin-right: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-item::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 10px;
}

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

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Hero Section */
.hero-slider {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-slide {
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 70%);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--white);
}

.category-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.slide-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 800px;
}

.meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.slide-content .meta { color: #ccc; }

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-header h3 {
    font-size: 1.5rem;
    position: relative;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.news-card {
    background: var(--bg-main);
}

.img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.img-wrapper img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.img-wrapper .category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Blocks Row */
.category-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.list-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Sidebar Widgets */
.widget {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.widget-header {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.widget-header h3 {
    font-size: 1.2rem;
    position: relative;
}

.widget-header h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Newsletter */
.newsletter-widget p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

#newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#newsletter-form input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    border-radius: 4px;
    outline: none;
}

#newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#newsletter-form button:hover {
    background-color: #b71c1c;
}

/* Trending List */
.trending-list {
    counter-reset: trend-counter;
}

.trending-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.trending-list a {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.trend-number {
    counter-increment: trend-counter;
    content: counter(trend-counter);
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
}
.dark-mode .trend-number { color: #444; }

.trend-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Ad Widget */
.ad-widget {
    padding: 0;
    background: none;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.footer-about span {
    color: var(--primary-color);
}

.footer-about p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 400px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-editorial h3, .footer-contact h3, .footer-links h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-editorial h3::after, .footer-contact h3::after, .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-editorial ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-editorial ul li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.footer-editorial ul li div {
    display: flex;
    flex-direction: column;
}

.footer-editorial ul li strong {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.footer-editorial ul li span {
    color: #e0e0e0;
    font-weight: 500;
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .search-container {
        display: none; /* Hide on mobile for simplicity, or add toggle */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none; /* Add JS to toggle this */
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links li a {
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }
    
    .news-grid, .category-blocks {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}
