* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #0b143c;
    --bg-secondary: #1a2558;
    --bg-card: #162450;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent: #667eea;
    --accent-hover: #764ba2;
    --border: #2a3a6a;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
.container { width: 90%; max-width: 100%; margin: 0 auto; }
.content-wrapper { max-width: 100%; padding: 0 10px; min-width: 0; }

.main-header { background: var(--bg-primary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; width: 90%; margin: 0 auto; }
.logo a { text-decoration: none; color: var(--text-primary); display: flex; align-items: center; }
.logo img { max-height: 50px; width: auto; }
.logo h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.main-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

.breaking-news-section { background: #c53030; color: #fff; padding: 10px 0; overflow: hidden; }
.breaking-news-container { display: flex; align-items: center; gap: 12px; width: 90%; margin: 0 auto; }
.breaking-news-label { font-weight: 700; font-size: 12px; white-space: nowrap; }
.breaking-news-ticker-wrap { flex: 1; overflow: hidden; }
.breaking-news-ticker { display: flex; align-items: center; gap: 12px; animation: ticker 60s linear infinite; }
.breaking-ticker-item { color: #fff; text-decoration: none; white-space: nowrap; }
.breaking-ticker-item:hover { text-decoration: underline; }
.breaking-ticker-sep { color: rgba(255,255,255,0.5); font-size: 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.breaking-cards-section { background: var(--bg-secondary); padding: 28px 0 36px; border-bottom: 1px solid var(--border); }
.breaking-cards-container { width: 90%; max-width: 1400px; margin: 0 auto; padding: 0 10px; }
.breaking-cards-title { font-size: 20px; color: var(--text-primary); margin-bottom: 18px; padding-left: 4px; }
.breaking-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.breaking-card .breaking-card-img-link { display: block; overflow: hidden; }
.breaking-card .breaking-card-img-link img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.2s; }
.breaking-card .breaking-card-img-link:hover img { transform: scale(1.03); }
.breaking-card .no-image { width: 100%; height: 180px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }

.main-content { display: grid; grid-template-columns: 280px 1fr; gap: 30px; width: 90%; max-width: 1400px; margin: 20px auto 40px; padding: 0 10px; }
.sidebar-left { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--bg-card); border-radius: 8px; padding: 20px; border: 1px solid var(--border); }
.sidebar-widget-title { font-size: 15px; margin-bottom: 12px; color: var(--text-primary); }
.rates-source { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.rates-list { list-style: none; }
.rates-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rates-list li:last-child { border-bottom: none; }
.rate-value { color: var(--accent); font-weight: 600; }
.rates-error { color: #f56565; font-size: 13px; }
.special-news-sidebar-list { list-style: none; }
.special-news-sidebar-item { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.special-news-sidebar-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.special-sidebar-img { flex-shrink: 0; width: 80px; height: 60px; overflow: hidden; border-radius: 6px; }
.special-sidebar-img img { width: 100%; height: 100%; object-fit: cover; }
.special-sidebar-content a { color: var(--text-primary); text-decoration: none; font-size: 13px; line-height: 1.4; display: block; }
.special-sidebar-content a:hover { color: var(--accent); }
.special-sidebar-content .meta { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.featured-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-bottom: 40px; }
.featured-main { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; }
.featured-main.slider-main { display: flex; flex-direction: column; min-height: auto; gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.featured-main-img-link { display: block; overflow: hidden; border-radius: 12px 12px 0 0; flex: none; }
.featured-main.slider-main .featured-main-img-link img { width: 100%; height: auto; min-height: 320px; max-height: 420px; object-fit: cover; display: block; transition: transform 0.2s; }
.featured-main.slider-main .featured-main-img-link:hover img { transform: scale(1.02); }
.featured-main.slider-main .featured-main-img-link .no-image { width: 100%; min-height: 320px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.featured-main img { width: 100%; height: 400px; object-fit: cover; display: block; }
.featured-main .no-image { width: 100%; height: 400px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.featured-main.slider-main .featured-main-content { position: static; padding: 24px; background: var(--bg-card); border-radius: 0; border: none; border-top: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.featured-main-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.featured-main-content .category { font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.featured-main-content h2 { font-size: 22px; margin-bottom: 8px; line-height: 1.3; }
.featured-main-content h2 a { color: var(--text-primary); text-decoration: none; }
.featured-main.slider-main .featured-main-content h2 a { color: var(--text-primary); }
.featured-main-content h2 a:hover { color: var(--accent); }
.featured-main-content .meta { font-size: 13px; opacity: 0.9; color: var(--text-secondary); }
.featured-sidebar { display: flex; flex-direction: column; gap: 16px; }
.featured-item { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.featured-item:last-child { border-bottom: none; }
.featured-item-img-link { flex-shrink: 0; display: block; border-radius: 8px; overflow: hidden; }
.featured-item img { width: 150px; height: 120px; object-fit: cover; display: block; transition: transform 0.2s; }
.featured-item-img-link:hover img { transform: scale(1.03); }
.featured-item .no-image.small { width: 150px; height: 120px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-secondary); flex-shrink: 0; border-radius: 8px; }
.featured-item-content { flex: 1; min-width: 0; }
.featured-item-content .category { font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.featured-item-content h3 { font-size: 15px; line-height: 1.4; }
.featured-item-content h3 a { color: var(--text-primary); text-decoration: none; }
.featured-item-content h3 a:hover { color: var(--accent); }
.featured-item-content .meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.news-section { margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 22px; color: var(--text-primary); }
.section-header a { color: var(--accent); text-decoration: none; font-size: 14px; }
.section-header a:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.news-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card .no-image { width: 100%; height: 200px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.news-card-content { padding: 16px; }
.news-card-content .category { font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.news-card-content h3 { font-size: 16px; line-height: 1.4; margin-bottom: 8px; }
.news-card-content h3 a { color: var(--text-primary); text-decoration: none; }
.news-card-content h3 a:hover { color: var(--accent); }
.news-card-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.news-card-content .meta { font-size: 12px; color: var(--text-secondary); }
.news-card-content .meta .source { margin-right: 8px; }

.category-header { margin-bottom: 30px; text-align: center; padding: 30px 0; }
.category-header h1 { font-size: 32px; margin-bottom: 8px; }
.category-header p { color: var(--text-secondary); font-size: 16px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; padding: 20px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); }
.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

.main-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 50px 0 20px; margin-top: 60px; }
.footer-container { width: 90%; margin: 0 auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-section h3, .footer-section h4 { margin-bottom: 15px; color: var(--text-primary); }
.footer-section p { color: var(--text-secondary); line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-section ul li a:hover { color: var(--accent); }
.footer-social { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-social-label { color: var(--text-secondary); font-size: 14px; margin-right: 5px; }
.footer-social-btn { display: inline-block; padding: 6px 12px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; border-radius: 6px; font-size: 13px; transition: background 0.2s, color 0.2s; }
.footer-social-btn:hover { background: var(--accent); color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; }
.footer-bottom a.footer-admin-link { color: var(--text-secondary); opacity: 0.7; text-decoration: none; margin-left: 12px; font-size: 13px; }
.footer-bottom a.footer-admin-link:hover { color: var(--accent); opacity: 1; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.empty-state h2 { color: var(--text-primary); margin-bottom: 20px; font-size: 28px; }
.empty-state p { font-size: 18px; margin-bottom: 30px; }
.btn-empty { display: inline-block; padding: 12px 30px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; }
.btn-empty:hover { background: var(--accent-hover); }

.news-detail { max-width: 100%; }
.news-detail-header { margin-bottom: 20px; }
.news-detail-header .category { font-size: 14px; color: var(--accent); margin-bottom: 8px; display: block; }
.news-detail-header h1 { font-size: 28px; line-height: 1.35; margin-bottom: 12px; }
.news-detail-meta { font-size: 14px; color: var(--text-secondary); }
.news-share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.news-share-label { font-size: 14px; color: var(--text-secondary); margin-right: 8px; }
.news-share-btn { padding: 6px 12px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; border-radius: 6px; font-size: 13px; border: 1px solid var(--border); cursor: pointer; transition: background 0.2s, color 0.2s; }
.news-share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.news-detail-image { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.news-detail-image img { width: 100%; max-height: 500px; object-fit: cover; display: block; }
.news-detail-content { font-size: 17px; line-height: 1.75; }
.news-detail-content p { margin-bottom: 16px; color: var(--text-secondary); }
.news-detail-content img { max-width: 100%; height: auto; border-radius: 8px; }
.news-detail-content a { color: var(--accent); text-decoration: none; }
.news-detail-content a:hover { text-decoration: underline; }

.main-content.static-page-layout { grid-template-columns: 1fr; max-width: 1200px; margin: 30px auto 60px; padding: 0 20px; }
.static-page-container { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.static-page-card { background: var(--bg-card); border-radius: 12px; padding: 40px 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); border: 1px solid var(--border); }
.static-page-title { font-size: 28px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); color: var(--text-primary); }
.static-page-card .page-content h2 { font-size: 20px; margin: 28px 0 12px; color: var(--text-primary); }
.static-page-card .page-content p { margin-bottom: 18px; line-height: 1.75; color: var(--text-secondary); }
.static-page-card .page-content a { color: var(--accent); text-decoration: none; }
.static-page-card .page-content a:hover { text-decoration: underline; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text-primary); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.contact-card:hover { background: var(--bg-primary); border-color: var(--accent); transform: translateY(-2px); }
.contact-card-icon { font-size: 32px; }
.contact-card-label { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-card-value { font-size: 16px; font-weight: 600; color: var(--accent); }
.static-page-sidebar { display: flex; flex-direction: column; gap: 24px; }
.static-sidebar-box { background: var(--bg-card); border-radius: 10px; padding: 24px; border: 1px solid var(--border); }
.static-sidebar-title { font-size: 16px; margin-bottom: 14px; color: var(--text-primary); }
.static-sidebar-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.static-sidebar-links { list-style: none; }
.static-sidebar-links li { margin-bottom: 8px; }
.static-sidebar-links a { color: var(--text-secondary); text-decoration: none; display: block; padding: 8px 0; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.static-sidebar-links a:hover, .static-sidebar-links a.active { color: var(--accent); background: rgba(102, 126, 234, 0.1); }
.static-social-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.static-social-btn { display: inline-block; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: #fff; transition: opacity 0.2s, transform 0.2s; }
.static-social-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.static-social-btn.facebook { background: #1877f2; }
.static-social-btn.twitter { background: #1da1f2; }
.static-social-btn.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.static-social-btn.youtube { background: #ff0000; }
.contact-preview p { margin: 0 0 8px; font-size: 14px; }
.contact-preview a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
    .static-page-container { grid-template-columns: 1fr; }
    .static-page-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .main-content { grid-template-columns: 1fr; width: 95%; }
    .sidebar-left { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .content-wrapper { order: 0; }
    .featured-news { grid-template-columns: 1fr; }
    .featured-main.slider-main .featured-main-img-link img,
    .featured-main.slider-main .featured-main-img-link .no-image { min-height: 240px; }
    .breaking-cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
    .static-page-sidebar { grid-template-columns: 1fr; }
    .sidebar-left { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-content { width: 95%; }
    .footer-content { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}
