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

:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #d32f2f;
    --accent-hover: #b71c1c;
    --blue: #1565c0;
    --text: #212121;
    --text-light: #616161;
    --text-muted: #9e9e9e;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --max-width: 1280px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-left { display: flex; gap: 20px; }
.top-bar-left span { opacity: 0.8; }

.top-bar-right { display: flex; gap: 15px; align-items: center; }
.top-bar-right a { color: var(--white); opacity: 0.8; }
.top-bar-right a:hover { opacity: 1; }

/* Header */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.logo-text h1 {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: border-color 0.2s;
}

.header-search input:focus {
    border-color: var(--accent);
}

.header-search button {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: var(--accent-hover);
}

/* Navigation */
.nav {
    background: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent);
    color: var(--white);
}

/* Breaking News */
.breaking-news {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: var(--accent);
    color: var(--white);
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker p {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-weight: 500;
}

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

/* Main Content */
.main { padding: 30px 0; }

/* Featured News - Hero Style */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.featured-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-main .card-image {
    position: relative;
}

.featured-main .card-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-main:hover .card-image img {
    transform: scale(1.05);
}

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

.featured-main .card-content h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-main .card-content h2 a { color: var(--white); }
.featured-main .card-content h2 a:hover { color: var(--accent); }

.featured-main .card-content p {
    opacity: 0.9;
    font-size: 15px;
    margin-bottom: 10px;
}

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

.card-side {
    display: flex;
    gap: 15px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-side:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-side .card-image {
    width: 140px;
    flex-shrink: 0;
}

.card-side .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-side .card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-side .card-content h3 {
    font-size: 1em;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Badge */
.category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.category.small {
    padding: 3px 8px;
    font-size: 10px;
    margin-bottom: 5px;
}

.category.blue { background: var(--blue); }

time {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover { text-decoration: underline; }

/* Section Title */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

.section-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
}

.section-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* News Grid */
.news-grid {
    margin-bottom: 40px;
}

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

.grid .card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.grid .card-image {
    position: relative;
    overflow: hidden;
}

.grid .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s;
}

.grid .card:hover .card-image img {
    transform: scale(1.08);
}

.grid .card-content {
    padding: 18px;
}

.grid .card-content h3 {
    font-size: 1em;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid .card-content h3 a { color: var(--text); }
.grid .card-content h3 a:hover { color: var(--accent); }

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

/* Content with Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Card List */
.news-list { margin-bottom: 40px; }

.card-list {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.card-list:last-child { border-bottom: none; }

.card-list .card-image {
    width: 200px;
    flex-shrink: 0;
}

.card-list .card-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius);
}

.card-list .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-list .card-content h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-list .card-content h3 a { color: var(--text); }
.card-list .card-content h3 a:hover { color: var(--accent); }

.card-list .card-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list { list-style: none; }

.category-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li:last-child { border-bottom: none; }

.category-list a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.category-list a:hover { color: var(--accent); }

.category-count {
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.newsletter-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
}

.newsletter-box h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.newsletter-box p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--secondary); }

.popular-posts { list-style: none; }

.popular-posts li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 15px;
}

.popular-posts li:last-child { border-bottom: none; }

.popular-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-posts a {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.popular-posts a:hover { color: var(--accent); }

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3,
.footer-col h4 {
    font-size: 1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-about .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-about .footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-about .footer-social a:hover {
    background: var(--accent);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Article Page */
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-header { margin-bottom: 30px; }

.article-header h1 {
    font-size: 2.2em;
    line-height: 1.3;
    margin: 15px 0;
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-image { margin: 30px -40px; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
    padding: 0 40px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5em;
    margin: 40px 0 20px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-size: 1.2em;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
    color: var(--text);
}

.article-content ul, .article-content ol {
    margin: 20px 0 25px 25px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text);
}

.article-content blockquote {
    background: var(--bg);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text-light);
}

.article-content .callout {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content .callout strong { color: #e65100; }

.article-content .lead {
    font-size: 19px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.8;
}

.article-tags, .article-share {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-tags span, .article-share span {
    font-weight: 600;
    margin-right: 15px;
}

.article-tags a {
    display: inline-block;
    background: var(--bg);
    padding: 6px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.2s;
}

.article-tags a:hover {
    background: var(--accent);
    color: var(--white);
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 6px;
    margin: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.share-btn:hover { background: var(--accent-hover); }

.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg);
    border-radius: var(--radius);
    margin: 40px 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1em;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

.related-articles { margin: 50px 0; }

.related-articles h3 {
    font-size: 1.3em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

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

.card-related {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-related:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.card-related .card-content {
    padding: 18px;
}

.card-related h4 {
    font-size: 1em;
    margin: 10px 0;
    line-height: 1.4;
}

.card-related h4 a { color: var(--text); }
.card-related h4 a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
    .featured { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .header-main { flex-direction: column; gap: 15px; }
    .header-search input { width: 100%; }
    .header-search { width: 100%; }
    
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        background: var(--secondary);
        z-index: 100;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .breaking-news .container { flex-direction: column; text-align: center; gap: 10px; }
    
    .featured-main .card-image img { height: 300px; }
    .featured-main .card-content h2 { font-size: 1.3em; }
    
    .card-side { flex-direction: column; }
    .card-side .card-image { width: 100%; height: 150px; }
    
    .grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .article { padding: 25px; }
    .article-header h1 { font-size: 1.5em; }
    .article-image { margin: 25px -25px; }
    .article-image figcaption { padding: 0 25px; }
    .article-meta { flex-direction: column; gap: 5px; }
    
    .author-box { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}