/*
Theme Name: Fast Blog
Author: Custom
Description: Modern, high-conversion responsive finance blog theme.
Version: 2.0
*/

:root {
  --primary: #0f172a;
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text-main); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
header { background: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.site-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.site-title span { color: var(--accent); }
.main-nav ul { display: flex; list-style: none; gap: 24px; font-size: 0.95rem; font-weight: 600; }
.main-nav a { color: var(--text-muted); }
.main-nav a:hover { color: var(--accent); }

/* Hero Banner */
.hero-banner { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 48px 30px; border-radius: var(--radius); margin-top: 30px; text-align: center; }
.hero-banner h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.hero-banner p { color: #94a3b8; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin: 40px auto; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

/* Post Grid & Cards */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-thumb { height: 190px; width: 100%; object-fit: cover; background: #e2e8f0; }

.post-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-cat-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: 20px; width: fit-content; margin-bottom: 12px; }
.post-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.post-title { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--primary); }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 16px; flex-grow: 1; }
.read-more { font-size: 0.88rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

/* Sidebar */
aside .widget { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
aside h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-light); }
aside ul { list-style: none; }
aside li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-weight: 500; }
aside li:last-child { border-bottom: none; }
aside a { color: var(--text-main); }
aside a:hover { color: var(--accent); padding-left: 4px; }

/* Footer */
footer { background: #ffffff; border-top: 1px solid var(--border); padding: 36px 0; text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 60px; }
/* Enhanced Multi-Column Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding-top: 50px; margin-top: 70px; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-title { color: #ffffff; font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.2px; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; max-width: 340px; color: #94a3b8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: #38bdf8; padding-left: 3px; }

.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; font-size: 0.82rem; text-align: center; color: #64748b; background: #0b1120; }
/* Fix Footer Layout & List Bullets */
.site-footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 50px 0 0 0 !important;
    margin-top: 60px !important;
    border-top: 1px solid #1e293b !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 40px !important;
    padding-bottom: 40px !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

.footer-title {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

.footer-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}

.footer-links {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    list-style: none !important;
    margin-bottom: 10px !important;
}

.footer-links a {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: #38bdf8 !important;
}

.footer-bottom {
    border-top: 1px solid #1e293b !important;
    padding: 20px 0 !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    color: #64748b !important;
    background: #0b1120 !important;
}
/* Section Heading */
.section-heading { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* Related Posts Styling */
.related-posts-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.related-title { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.related-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding: 12px; }
.related-thumb { height: 120px; width: 100%; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.related-card h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 6px; font-weight: 600; }
.related-card h4 a:hover { color: var(--accent); }
.related-date { font-size: 0.75rem; color: var(--text-muted); }

/* Sidebar Recent Posts */
.sidebar-posts { list-style: none; padding: 0; }
.sidebar-posts li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a { font-size: 0.92rem; font-weight: 600; display: block; line-height: 1.4; }
.sidebar-posts a:hover { color: var(--accent); }
.sidebar-date { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 3px; }