/*
Theme Name: Invest Clarity News
Theme URI: https://investclaritypath.com/
Author: Invest Clarity Path
Author URI: https://investclaritypath.com/
Description: An original news portal style theme for Invest Clarity Path, built from scratch. Top news bar, logo header, dark category navigation, latest news ticker, featured story, category grids, and a right sidebar on single posts. Header and footer keep the current Invest Clarity Path branding, logo size, and layout height.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: invest-clarity-news
*/
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6;color:#111;background:#fff}
a{color:#8a5a14;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
/* Top bar */
.topbar{background:#111;color:#ddd;font-size:13px;padding:6px 0}
.topbar .container{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.topbar a{color:#ddd}
/* Header, kept to current size: logo 170x55, 12px padding top and bottom */
.site-header{background:#fff;border-bottom:1px solid #e5e5e5}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;min-height:79px}
.site-logo img{width:170px;height:55px;object-fit:contain;display:block}
.site-title{font-size:28px;font-weight:800;margin:0;line-height:1.1;color:#241a08}
.site-title a{color:#241a08}
.site-title span{color:#9a6b1f}
.site-tagline{font-size:13px;color:#666;margin:2px 0 0}
.header-search input{padding:9px 10px;border:1px solid #ccc;border-radius:4px;width:220px}
.header-search button{padding:9px 14px;background:#241a08;color:#fff;border:0;border-radius:4px;cursor:pointer}
/* Primary navigation, same gradient as current header and footer */
.main-nav{background:linear-gradient(to right,#241a08 0%,#5c3d0a 28%,#8a5a14 55%,#9a6b1f 75%,#7a4e0f 100%)}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.main-nav li{margin:0}
.main-nav a{display:block;color:#fff;padding:12px 16px;font-size:15px;font-weight:700}
.main-nav a:hover{background:rgba(0,0,0,.25);text-decoration:none}
.main-nav .current-menu-item a{background:rgba(0,0,0,.35)}
/* Latest ticker */
.ticker{background:#f7f3ea;border-bottom:1px solid #e5dcc3;padding:9px 0;font-size:14px}
.ticker strong{color:#8a0000;margin-right:10px}
.ticker a{color:#111}
/* Layout */
.content-wrap{display:flex;gap:28px;padding:24px 0}
.main-content{flex:1;min-width:0}
.sidebar{width:300px;flex-shrink:0}
.sidebar .widget{margin-bottom:24px}
.sidebar h2,.sidebar .widget-title{font-size:18px;border-bottom:2px solid #9a6b1f;padding-bottom:6px}
/* Hero */
.hero{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-bottom:28px}
.hero-main{position:relative}
.hero-main img{width:100%;height:360px;object-fit:cover;display:block}
.hero-main h2{font-size:26px;line-height:1.3;margin:10px 0 6px}
.hero-side h3{font-size:18px;margin:0 0 12px;border-bottom:2px solid #9a6b1f;padding-bottom:6px}
.hero-side article{display:flex;gap:12px;margin-bottom:14px}
.hero-side img{width:100px;height:70px;object-fit:cover;flex-shrink:0}
.hero-side h4{font-size:15px;line-height:1.4;margin:0}
.post-date{font-size:13px;color:#777}
/* Category sections */
.section-title{font-size:22px;border-left:5px solid #9a6b1f;padding-left:10px;margin:28px 0 14px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card img{width:100%;height:170px;object-fit:cover}
.post-card h3{font-size:17px;line-height:1.4;margin:10px 0 6px}
.post-card p{font-size:14px;color:#444;margin:0}
/* News list, like a news portal list */
.news-list article{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #eee}
.news-list img{width:220px;height:140px;object-fit:cover;flex-shrink:0}
.news-list h3{font-size:19px;line-height:1.4;margin:0 0 6px}
.news-list p{margin:0;color:#444;font-size:15px}
/* Single post */
.single-title{font-size:32px;line-height:1.25;margin:8px 0 10px}
.post-meta{font-size:14px;color:#777;margin-bottom:16px}
.entry-content h2{font-size:24px;margin:26px 0 10px}
.entry-content h3{font-size:20px;margin:22px 0 8px}
.entry-content p{margin:0 0 14px}
.entry-content ul,.entry-content ol{margin:0 0 16px;padding-left:22px}
/* Footer, kept to current layout: links above, copyright below */
.site-footer{background:linear-gradient(to right,#241a08 0%,#5c3d0a 28%,#8a5a14 55%,#9a6b1f 75%,#7a4e0f 100%);color:#fff;padding:22px 0}
.footer-links{text-align:center;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.25);margin-bottom:12px}
.footer-links ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.footer-links a{color:#fff}
.footer-copy{text-align:center;font-size:14px}
.pagination{margin:24px 0;text-align:center}
.pagination a,.pagination span{padding:8px 12px;border:1px solid #ddd;margin:2px;display:inline-block}
@media(max-width:900px){
.hero{grid-template-columns:1fr}
.post-grid{grid-template-columns:1fr 1fr}
.content-wrap{flex-direction:column}
.sidebar{width:100%}
.news-list img{width:140px;height:90px}
.header-inner{flex-wrap:wrap}
}
@media(max-width:600px){
.post-grid{grid-template-columns:1fr}
.hero-main img{height:220px}
.header-search input{width:150px}
.site-title{font-size:22px}
.single-title{font-size:26px}
}
