* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1a2632;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .site-header,
body.dark-mode .news-card,
body.dark-mode .sidebar,
body.dark-mode .article-full,
body.dark-mode .related-card {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .card-title a,
body.dark-mode .recent-list a,
body.dark-mode .category-list a {
    color: #e0e0e0;
}

body.dark-mode .main-nav a {
    color: #b0b0b0;
}

body.dark-mode .search-bar-container,
body.dark-mode .live-search-results {
    background: #1e1e1e;
}

body.dark-mode .live-search-results {
    border: 1px solid #333;
}

body.dark-mode .live-search-item:hover {
    background: #2a2a2a;
}

body.dark-mode .read-time {
    background: #333;
    color: #aaa;
}

body.dark-mode .label-badge {
    background: #333;
    color: #e0e0e0;
}

#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #e63946, #ff6b6b, #ffa502);
    z-index: 10000;
    transition: width 0.1s ease;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: #0a2540;
    letter-spacing: -0.5px;
}

.logo span {
    color: #e63946;
}

.breaking-tag {
    background: #e63946;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 12px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dark-mode-toggle,
.search-toggle,
.bookmark-nav,
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #1e2a3e;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
}

.dark-mode-toggle:hover,
.search-toggle:hover,
.bookmark-nav:hover,
.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .dark-mode-toggle,
body.dark-mode .search-toggle,
body.dark-mode .bookmark-nav,
body.dark-mode .mobile-menu-toggle {
    color: #e0e0e0;
}

#bookmarkCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e63946;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
}

.search-bar-container {
    display: none;
    padding: 12px 0;
    border-top: 1px solid #eef2f5;
}

.search-bar-container.active {
    display: block;
}

.search-wrapper {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cfdfed;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

#searchInput:focus {
    border-color: #e63946;
}

#searchSubmitBtn {
    background: #0a2540;
    border: none;
    padding: 0 24px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

#searchSubmitBtn:hover {
    background: #e63946;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.live-search-results.active {
    display: block;
}

.live-search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background 0.2s;
}

.live-search-item:hover {
    background: #f5f5f5;
}

.live-search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.main-nav {
    border-top: 1px solid #eef2f5;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.2s;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e63946;
}

.category-dropdown {
    display: none;
    position: relative;
}

.dropdown-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-btn:hover {
    background: #c1121f;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #e63946;
}

.category-dropdown:hover .dropdown-content {
    display: block;
}

.breaking-news-section {
    background: #0a2540;
    color: white;
    padding: 12px 0;
    border-bottom: 2px solid #e63946;
}

.breaking-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.breaking-label {
    background: #e63946;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
}

.ticker-item {
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.notify-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.notify-btn:hover {
    background: #c1121f;
}

.main-content {
    min-height: 60vh;
}

.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin: 48px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #d9e2ec;
}

.card-content {
    padding: 20px;
    position: relative;
}

.card-category {
    color: #e63946;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none;
    color: #0a2540;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #e63946;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6c7a89;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.card-excerpt {
    color: #4a5b6e;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-widget {
    margin-bottom: 32px;
}

.sidebar-widget h3 {
    font-size: 20px;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.recent-list,
.category-list {
    list-style: none;
}

.recent-list li,
.category-list li {
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 12px;
}

.recent-list a,
.category-list a {
    text-decoration: none;
    color: #1e2a3e;
    font-weight: 500;
    transition: color 0.2s;
}

.recent-list a:hover,
.category-list a:hover {
    color: #e63946;
}

.article-full {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 48px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.post-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #5d6f83;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 16px;
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
    color: #1f2a3e;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
    margin: 30px 0 15px 0;
}

.post-labels {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f5;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.label-badge {
    background: #eef2fa;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #1e4663;
}

.breadcrumbs {
    margin: 24px 0 0 0;
    font-size: 14px;
    color: #6c7a89;
}

.breadcrumbs a {
    color: #e63946;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
    color: white;
}

.share-fb {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #eef2f5;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-card small {
    color: #666;
    font-size: 12px;
}

.site-footer {
    background: #0a1c2a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    background: #2c3e50;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: #e63946;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e63946;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2c3e50;
    font-size: 14px;
}

@media (max-width: 992px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .article-full {
        padding: 20px;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 12px 0;
    }
    
    .main-nav ul.open {
        display: flex;
    }
    
    .category-dropdown {
        display: block;
    }
    
    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .breaking-wrapper {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
}