/*
Theme Name: EarnFree Financial Child
Theme URI: https://earnfree.in/
Description: A publication-first homepage for EarnFree. Child theme for Raw News.
Author: EarnFree
Template: raw-news
Version: 1.0.0
Text Domain: earnfree-financial-child
*/

:root {
  --ef-navy: #0b132b;
  --ef-blue: #2563eb;
  --ef-ink: #0f172a;
  --ef-muted: #64748b;
  --ef-line: #e2e8f0;
  --ef-canvas: #f8fafc;
  --ef-card: #fff;
  --ef-up: #047857;
  --ef-up-bg: #ecfdf5;
  --ef-down: #b91c1c;
  --ef-down-bg: #fef2f2;
}

.ef-home, .ef-home * { box-sizing: border-box; }
body.wp-child-theme-earnfree-financial-child #masthead,
body.wp-child-theme-earnfree-financial-child #raw_news_breaking_news_section { display: none !important; }
.ef-home { background: var(--ef-canvas); color: var(--ef-ink); font-family: Inter, system-ui, sans-serif; padding: 0 0 48px; }
.ef-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.ef-home a { color: inherit; text-decoration: none; }
.ef-home a:hover { color: var(--ef-blue); }
.ef-topline { background: var(--ef-navy); color: #dbeafe; font-size: 12px; }
.ef-topline .ef-shell { min-height: 38px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.ef-live { color: #fff; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ef-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.13); }
.ef-ticker { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; color: #cbd5e1; }
.ef-ticker strong { color: #fff; font-weight: 700; }
.ef-brandbar { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ef-line); }
.ef-brandbar .ef-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ef-brand { font: 800 24px/1 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.04em; }
.ef-brand small { display: block; margin-top: 3px; color: var(--ef-muted); font: 700 9px/1 Inter, sans-serif; letter-spacing: .14em; }
.ef-menu { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; font-size: 13px; font-weight: 700; }
.ef-menu ul { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ef-menu li { margin: 0; padding: 0; list-style: none; }
.ef-menu a { padding: 9px 11px; border-radius: 6px; }
.ef-menu a:hover, .ef-menu .current-menu-item > a { background: #eff6ff; color: #1d4ed8; }
.ef-break { background: linear-gradient(100deg, #0b132b, #172554 60%, #1d4ed8); color: #fff; }
.ef-break .ef-shell { min-height: 51px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ef-flash { flex: 0 0 auto; border-radius: 4px; padding: 5px 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.ef-break p { margin: 0; overflow: hidden; color: #e0e7ff; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ef-topics { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 2px; }
.ef-topic { padding: 7px 11px; border: 1px solid var(--ef-line); border-radius: 999px; background: #fff; color: #475569; font-size: 11px; font-weight: 800; }
.ef-topic:hover { border-color: #93c5fd; background: #eff6ff; }
.ef-section { padding-top: 28px; }
.ef-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; }
.ef-section-head h2 { margin: 0; font: 800 20px/1.2 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.02em; }
.ef-section-head h2::before { content: ''; display: inline-block; width: 5px; height: 20px; margin: 0 10px -4px 0; border-radius: 99px; background: var(--ef-blue); }
.ef-section-head a { color: #1d4ed8; font-size: 12px; font-weight: 800; }
.ef-market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ef-market-card { min-height: 86px; padding: 15px; background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 10px; }
.ef-market-card span { display: block; color: var(--ef-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ef-market-card strong { display: block; margin-top: 8px; font: 800 17px/1.1 'Plus Jakarta Sans', Inter, sans-serif; }
.ef-market-card em { display: block; margin-top: 6px; color: var(--ef-muted); font-size: 11px; font-style: normal; }
.ef-market-card:nth-child(1) { border-top: 3px solid #2563eb; }
.ef-market-card:nth-child(2) { border-top: 3px solid #f59e0b; }
.ef-market-card:nth-child(3) { border-top: 3px solid #10b981; }
.ef-market-card:nth-child(4) { border-top: 3px solid #8b5cf6; }
.ef-disclosure { margin: 14px 0 0; padding: 11px 14px; background: #eff6ff; border-left: 3px solid var(--ef-blue); color: #334155; font-size: 12px; line-height: 1.55; }
.ef-lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: 18px; }
.ef-lead, .ef-story { background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 10px; overflow: hidden; }
.ef-cover { display: block; height: 310px; background: linear-gradient(135deg, #0b132b, #1d4ed8); }
.ef-cover img { width: 100%; height: 100%; object-fit: cover; }
.ef-fallback-art { display: flex; width: 100%; height: 100%; padding: 25px; flex-direction: column; justify-content: end; background: radial-gradient(circle at 80% 15%, rgba(96,165,250,.8), transparent 28%), linear-gradient(135deg, #0b132b, #172554 58%, #2563eb); color: #fff; }
.ef-fallback-art span { color: #bfdbfe; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ef-fallback-art strong { max-width: 280px; margin-top: 8px; font: 800 32px/1.05 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.04em; }
.ef-lead-copy { padding: 20px; }
.ef-kicker { color: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ef-lead h1 { margin: 8px 0 10px; font: 800 clamp(25px, 3vw, 39px)/1.12 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.04em; }
.ef-excerpt { margin: 0; color: #475569; font-size: 14px; line-height: 1.62; }
.ef-byline { margin-top: 15px; color: var(--ef-muted); font-size: 11px; font-weight: 700; }
.ef-story-stack { display: grid; gap: 12px; }
.ef-story { display: grid; grid-template-columns: 128px 1fr; min-height: 145px; }
.ef-story-media { display: block; min-height: 100%; background: linear-gradient(135deg, #dbeafe, #f8fafc); }
.ef-story-media img { height: 100%; width: 100%; object-fit: cover; }
.ef-story-copy { padding: 14px; }
.ef-story h3 { margin: 7px 0; font: 700 16px/1.3 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.02em; }
.ef-story time { color: var(--ef-muted); font-size: 11px; }
.ef-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.ef-feed-card { background: var(--ef-card); border: 1px solid var(--ef-line); border-radius: 10px; overflow: hidden; }
.ef-feed-card .ef-feed-image { display: block; height: 165px; background: linear-gradient(135deg, #e0e7ff, #f8fafc); }
.ef-feed-card img { width: 100%; height: 100%; object-fit: cover; }
.ef-feed-body { padding: 15px; }
.ef-feed-card h3 { margin: 8px 0 10px; font: 700 17px/1.35 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.02em; }
.ef-desk-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.ef-lane { background: #fff; border: 1px solid var(--ef-line); border-radius: 10px; overflow: hidden; }
.ef-lane-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--ef-line); }
.ef-lane-head h3 { margin: 0; font: 800 15px/1.2 'Plus Jakarta Sans', Inter, sans-serif; }
.ef-lane-head a { color: #2563eb; font-size: 11px; font-weight: 800; }
.ef-lane-post { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #edf2f7; }
.ef-lane-post:last-child { border-bottom: 0; }
.ef-lane-number { display: flex; min-height: 64px; align-items: center; justify-content: center; border-radius: 7px; background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1d4ed8; font: 800 22px/1 'Plus Jakarta Sans', Inter, sans-serif; }
.ef-lane-post h4 { margin: 5px 0; font: 700 14px/1.35 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.01em; }
.ef-lane-post time { color: var(--ef-muted); font-size: 10px; font-weight: 700; }
.ef-newsletter { padding: 25px; border-radius: 10px; background: var(--ef-navy); color: #fff; }
.ef-newsletter .ef-kicker { color: #93c5fd; }
.ef-newsletter h3 { margin: 8px 0; font: 800 25px/1.1 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.035em; }
.ef-newsletter p { color: #cbd5e1; font-size: 13px; line-height: 1.55; }
.ef-newsletter a { display: inline-block; margin-top: 10px; padding: 10px 13px; border-radius: 6px; background: #fff; color: #172554; font-size: 12px; font-weight: 800; }
.ef-empty { padding: 22px; border: 1px dashed var(--ef-line); border-radius: 10px; color: var(--ef-muted); }
@media (max-width: 860px) { .ef-market-grid { grid-template-columns: repeat(2, 1fr); } .ef-lead-grid, .ef-desk-grid { grid-template-columns: 1fr; } .ef-feed { grid-template-columns: 1fr 1fr; } .ef-menu { display: none; } }
@media (max-width: 560px) { .ef-shell { width: min(100% - 24px, 1320px); } .ef-brandbar .ef-shell { min-height: 65px; } .ef-cover { height: 220px; } .ef-story { grid-template-columns: 100px 1fr; } .ef-feed { grid-template-columns: 1fr; } .ef-topline .ef-shell { gap: 12px; } }
