/* CFDmkting Minimal Theme */
:root {
  --bg-body: #f8f9fa;
  --bg-surface: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --brand-primary: #0B1E3D; 
  --brand-accent: #C9A84C; 
  --border-color: #e5e5e5;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.news-page {
    background-color: var(--bg-body);
    font-family: var(--font-family);
    margin: 0; padding: 0;
    color: var(--text-main);
    line-height: 1.6;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-accent); }

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

/* Header styling is now handled by style.css */

/* Layout */
.main-layout { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 50px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}

/* Carousel */
.carousel { margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.carousel-item { padding: 60px 40px; color: #fff; text-align: center; }
.carousel-item h2 { font-size: 2rem; margin-bottom: 10px; margin-top:0; }
.carousel-item p { font-size: 1.1rem; opacity: 0.9; margin: 0; }

/* News List */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.2s; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.card-content { flex: 1; min-width: 0; }
.card-thumbnail { flex-shrink: 0; width: 240px; height: 150px; border-radius: 8px; overflow: hidden; }
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card-thumbnail:hover img { transform: scale(1.05); }
@media (max-width: 768px) {
    .news-card { flex-direction: column-reverse; align-items: stretch; gap: 15px; }
    .card-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }
}
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 15px; }
.card-meta .category a { color: var(--brand-accent); font-weight: 600; }
.news-card h2 { font-size: 1.4rem; margin: 0 0 10px 0; line-height: 1.4; }
.news-card h2 a { color: var(--brand-primary); }
.news-card .excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-size: 0.9rem; font-weight: 600; color: var(--brand-accent); }

/* Sidebar */
.widget { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.widget-title { font-size: 1.1rem; color: var(--brand-primary); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-top: 0; margin-bottom: 15px; }
.widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.widget ul li a { color: var(--text-muted); display: block; }
.widget ul li a:hover { color: var(--brand-accent); }

.sidebar-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
.sidebar-grid a { background: var(--bg-body); padding: 10px 5px; text-align: center; border-radius: 6px; font-size: 0.9rem; font-weight: 500; border: 1px solid transparent; }
.sidebar-grid a:hover { background: #fff; border-color: var(--brand-accent); }

.promo-block { position: sticky; top: 100px; background: linear-gradient(135deg, #f8f9fa, #fff); border: 1px solid var(--border-color); }
.promo-block h3 { color: var(--brand-primary); margin-top: 0; }
.promo-block p { color: var(--text-muted); font-size: 0.9rem; }
.promo-btn { display: inline-block; padding: 10px 20px; background: var(--brand-accent); color: #fff; border-radius: 6px; font-weight: 600; text-align: center; margin-top: 10px; width: calc(100% - 40px); }
.promo-btn:hover { background: #b08d4b; color: #fff; }

/* Post Detail */
.post-detail { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-accent); }
.post-header { margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.post-header h1 { font-size: 2.2rem; color: var(--brand-primary); margin: 0 0 15px 0; line-height: 1.3; }
.post-meta { font-size: 0.9rem; color: var(--text-muted); }
.post-meta a { color: var(--brand-accent); }
.post-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-main); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.post-body h2, .post-body h3 { color: var(--brand-primary); margin-top: 30px; }

/* Pagination */
.pagination { display: flex; gap: 5px; margin-top: 30px; justify-content: center; }
.pagination a, .pagination span { padding: 8px 15px; border-radius: 6px; background: #fff; color: var(--text-main); border: 1px solid var(--border-color); }
.pagination span.now-page { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }

/* Footer styling is now handled by style.css */

/* Sidebar Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag-cloud a { display: inline-block; padding: 6px 12px; background: #f4f6f8; color: var(--text-muted); border-radius: 6px; font-size: 0.85rem; text-decoration: none; transition: all 0.3s ease; border: 1px solid #eee; }
.tag-cloud a:hover { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }

/* Single Post Bottom Widgets */
.post-tags { margin: 40px 0 20px; font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.post-tags a { background: #f4f6f8; padding: 4px 10px; border-radius: 4px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; border: 1px solid #eee; transition: all 0.2s; }
.post-tags a:hover { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }

.post-nav { display: flex; justify-content: space-between; margin: 30px 0; padding: 25px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); font-size: 0.95rem; gap: 20px; }
.post-nav div { flex: 1; min-width: 0; }
.post-nav .next-post { text-align: right; }
.post-nav a { color: var(--brand-primary); text-decoration: none; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; transition: color 0.2s; }
.post-nav a:hover { color: var(--brand-accent); }

.related-posts { margin-top: 50px; }
.related-posts h3 { font-size: 1.3rem; margin-bottom: 20px; border-left: 4px solid var(--brand-accent); padding-left: 15px; color: var(--brand-primary); }
.related-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-list li a { display: block; padding: 15px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); text-decoration: none; transition: all 0.3s ease; font-weight: 500; line-height: 1.5; }
.related-list li a:hover { background: #f8f9fa; border-color: var(--brand-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); color: var(--brand-accent); }
@media (max-width: 768px) {
    .post-nav { flex-direction: column; gap: 15px; }
    .post-nav .next-post { text-align: left; }
    .related-list { grid-template-columns: 1fr; }
}
