:root {
    --primary: #E11D48;
    --secondary: #0F172A;
    --accent: #2563EB;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --text: #333333;
    --muted: #64748B;
    --border: #E2E8F0;
}

body.dark-mode {
    --bg: #0F172A;
    --white: #1E293B;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --border: #334155;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* Header */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
}

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

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

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

.top-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-info span {
    font-size: 14px;
    color: #cbd5e1;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    margin-left: -25px;
}

.search-results {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.search-results a {
    display: block;
    padding: 10px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.search-results a:hover {
    background: var(--bg);
}

.social-icons a, #theme-toggle {
    color: var(--white);
    margin-left: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    display: block;
    padding: 15px 0;
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

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

.nav-menu li a.active::after, .nav-menu li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

/* Breaking News */
.breaking-news {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-flex {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: var(--secondary);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 15px;
    flex-shrink: 0;
}

.ticker-wrapper {
    overflow: hidden;
}

#ticker {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

#ticker li {
    padding-right: 50px;
    font-size: 14px;
}

#ticker li::before {
    content: "•";
    margin-right: 10px;
}

/* Layout */
.main-content {
    padding: 30px 0;
}

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

/* Hero */
.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px;
    color: #fff;
}

.category-tag {
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-main h2 {
    font-size: 28px;
    line-height: 1.3;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-card {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-side-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.hero-side-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.hero-side-card span {
    font-size: 12px;
    color: var(--muted);
}

/* Section Titles */
.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.section-title span {
    font-weight: 700;
    color: var(--secondary);
}

/* Latest News List */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.latest-item img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

.latest-content h3 {
    font-size: 18px;
    margin: 10px 0;
}

.latest-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.latest-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

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

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--secondary);
}

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

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

.widget-list .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.widget-list a {
    font-weight: 500;
    font-size: 14px;
}

.ad-banner {
    background: #e2e8f0;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Video & Tags */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-thumb {
    height: 150px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

.video-card h3 {
    font-size: 16px;
    margin-top: 10px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--border);
}

.tags-cloud a:hover {
    background: var(--accent);
    color: #fff;
}

/* Footer */
footer {
    background: var(--secondary);
    color: #cbd5e1;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 50px 0;
}

.footer-grid h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 15px;
}

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

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

.footer-social a {
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #334155;
    font-size: 14px;
}

#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 998;
}

/* Article Detail */
.article-header {
    margin: 20px 0;
}

.article-header h1 {
    font-size: 36px;
    margin: 15px 0;
    color: var(--secondary);
}

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

.cover-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.article-body h2 {
    margin: 30px 0 15px;
}

.quote-highlight {
    border-left: 4px solid var(--primary);
    background: var(--white);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    border-radius: 0 8px 8px 0;
}

.share-buttons {
    margin: 40px 0;
    display: flex;
    gap: 15px;
}

.share-buttons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.fb {
    background: #1877F2;
}

.x {
    background: #000;
}

.wa {
    background: #25D366;
}

.tg {
    background: #0088cc;
}

.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--accent);
}

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

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.related-card h4 {
    font-size: 16px;
    margin-top: 10px;
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    background: var(--secondary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
}

.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}