/*
Theme Name: MoneyViaTJ
Theme URI: https://moneyviatj.com/
Author: MoneyViaTJ Team
Author URI: https://moneyviatj.com/
Description: A fast, AdSense-ready WordPress theme for money, earning-online and finance blogs. Mobile-first responsive design, built-in ad slots (header, in-article, sidebar, footer), SEO meta tags, Open Graph tags and Schema.org structured data. No frameworks, no bloat — just speed.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moneyviatj
Tags: blog, adsense, seo, responsive, fast, finance, money, customizer, featured-images
*/

/* ============ Variables & base ============ */
:root{
  --green:#0a6b4f; --green-dark:#074d39; --green-light:#0e8a66;
  --gold:#f5a623; --gold-dark:#c77f0a; --gold-soft:#fef3d8;
  --ink:#1f2937; --muted:#64748b; --bg:#f4f7f5; --card:#fff; --line:#e2e8f0;
  --radius:14px; --shadow:0 2px 10px rgba(10,107,79,.08); --shadow-lg:0 10px 30px rgba(10,107,79,.14);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.7;font-size:16.5px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--green-light);text-decoration:none}
a:hover{color:var(--gold-dark)}
.container{width:min(1180px,92%);margin:0 auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* WordPress core alignments */
.alignleft{float:left;margin:0 1.2rem 1rem 0}
.alignright{float:right;margin:0 0 1rem 1.2rem}
.aligncenter{display:block;margin:1.2rem auto;clear:both}
.wp-caption{max-width:100%;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:.5rem;text-align:center}
.wp-caption-text{font-size:.82rem;color:var(--muted);margin:.4rem 0 0}

/* ============ Header ============ */
.site-header{background:var(--green-dark);color:#fff;position:sticky;top:0;z-index:100;box-shadow:0 2px 12px rgba(0,0,0,.2)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.85rem 0;gap:1rem}
.brand{display:flex;align-items:center;gap:.6rem;color:#fff;font-weight:800;font-size:1.45rem;letter-spacing:-.5px}
.brand:hover{color:#fff}
.brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--gold),var(--gold-dark));display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#fff;font-weight:900;flex:none}
.brand small{display:block;font-size:.66rem;font-weight:500;color:#bfe3d4;letter-spacing:.4px}
.custom-logo{max-height:48px;width:auto}
.main-nav ul{display:flex;align-items:center;gap:.25rem;list-style:none;margin:0}
.main-nav a{color:#e3f2ec;padding:.55rem .9rem;border-radius:8px;font-weight:600;font-size:.95rem;white-space:nowrap;display:block}
.main-nav a:hover{background:rgba(255,255,255,.12);color:#fff}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:var(--gold);color:#3a2b00}
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:1.7rem;cursor:pointer;line-height:1}

/* ============ Hero ============ */
.hero{background:radial-gradient(1200px 500px at 80% -10%,rgba(245,166,35,.25),transparent 60%),linear-gradient(160deg,#053b2c,var(--green-dark) 55%,var(--green));color:#fff;padding:4rem 0 3.4rem}
.hero h1{font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.2;letter-spacing:-1px;max-width:16em}
.hero h1 .hl{color:var(--gold)}
.hero p{color:#cdeadb;max-width:44em;margin:1rem 0 1.6rem;font-size:1.08rem}
.btn{display:inline-block;padding:.8rem 1.6rem;border-radius:10px;font-weight:700;font-size:1rem;border:2px solid transparent;cursor:pointer;transition:transform .12s ease}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--gold);color:#3a2b00}
.btn-ghost{border-color:rgba(255,255,255,.35);color:#fff}
.btn-ghost:hover{border-color:#fff;color:#fff}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:2.2rem;margin-top:2.2rem;flex-wrap:wrap}
.hero-stats strong{display:block;font-size:1.5rem;color:var(--gold)}
.hero-stats span{font-size:.85rem;color:#a9cdbd}

/* ============ Sections & cards ============ */
.section{padding:3rem 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.6rem;flex-wrap:wrap}
.section-head h2{font-size:1.65rem;letter-spacing:-.5px;color:var(--green-dark)}
.section-head h2::after{content:"";display:block;width:52px;height:4px;background:var(--gold);border-radius:2px;margin-top:.4rem}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;border:1px solid var(--line);transition:transform .15s ease,box-shadow .15s ease}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.card-cover{height:180px;position:relative;overflow:hidden;background:var(--green-dark)}
.card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.card:hover .card-cover img{transform:scale(1.05)}
.badge{position:absolute;left:1rem;bottom:1rem;background:rgba(255,255,255,.94);color:var(--green-dark);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.6px;padding:.28rem .7rem;border-radius:999px}
.card-body{padding:1.25rem 1.3rem 1.4rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.card-body h3,.card-body h2.card-title{font-size:1.1rem;line-height:1.45;letter-spacing:-.2px}
.card-body h3 a,.card-body h2.card-title a{color:var(--green-dark)}
.card-body h3 a:hover,.card-body h2.card-title a:hover{color:var(--gold-dark)}
.excerpt{color:var(--muted);font-size:.94rem;flex:1}
.card-meta{display:flex;align-items:center;gap:.7rem;color:var(--muted);font-size:.82rem;border-top:1px solid var(--line);padding-top:.8rem}
.card-meta .dot{width:4px;height:4px;border-radius:50%;background:var(--gold)}

/* ============ Ad slots ============ */
.ad-slot{background:#fbfdfb;border:1.5px dashed #bcd9cb;border-radius:10px;text-align:center;padding:1rem;margin:1.6rem 0;overflow:hidden}
.ad-slot .ad-label{display:block;font-size:.68rem;letter-spacing:2.5px;text-transform:uppercase;color:#93aea2;margin-bottom:.4rem}
.ad-leader{min-height:100px}
.ad-inarticle{min-height:250px}
.ad-sidebar{min-height:280px;margin-top:0}

/* ============ Post layout ============ */
.post-wrap{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);gap:2.2rem;padding:2.4rem 0 3rem;align-items:start}
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:1rem}
.article-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);overflow:hidden}
.post-thumbnail{height:280px;overflow:hidden}
.post-thumbnail img{width:100%;height:100%;object-fit:cover}
.article-body{padding:2rem 2.2rem}
.article-body h1.post-title{font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.3;letter-spacing:-.5px;color:var(--green-dark);margin-bottom:1rem}
.article-meta{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;color:var(--muted);font-size:.88rem;padding:0 0 1.2rem;border-bottom:1px solid var(--line);margin-bottom:1.4rem}
.toc{background:#f6fbf8;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:8px;padding:1.1rem 1.3rem;margin:0 0 1.6rem}
.toc strong{display:block;margin-bottom:.5rem;color:var(--green-dark)}
.toc ol{margin-left:1.2rem;font-size:.95rem}
.toc li{margin:.25rem 0}
.entry-content{font-size:1.05rem;color:#334155}
.entry-content p{margin:0 0 1.15rem}
.entry-content h2{font-size:1.5rem;color:var(--green-dark);letter-spacing:-.4px;margin:2rem 0 .8rem;padding-left:.8rem;border-left:4px solid var(--gold);line-height:1.35}
.entry-content h3{font-size:1.2rem;color:var(--green);margin:1.6rem 0 .6rem}
.entry-content ul,.entry-content ol{margin:0 0 1.2rem 1.4rem}
.entry-content li{margin:.45rem 0}
.entry-content blockquote{background:var(--gold-soft);border-left:4px solid var(--gold);border-radius:0 8px 8px 0;padding:1rem 1.2rem;margin:1.4rem 0;color:#7c5200}
.entry-content table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.95rem}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:.6rem .8rem;text-align:left}
.entry-content th{background:#f6fbf8;color:var(--green-dark)}
.takeaways{background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid #a7f3d0;border-radius:10px;padding:1.3rem 1.5rem;margin:1.8rem 0}
.faq-item{border:1px solid var(--line);border-radius:10px;margin-bottom:.7rem;overflow:hidden}
.faq-item summary{padding:1rem 1.2rem;font-weight:700;color:var(--green-dark);cursor:pointer;list-style:none;background:#f6fbf8}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";float:right;color:var(--gold-dark);font-size:1.3rem}
.faq-item[open] summary::after{content:"–"}
.faq-item .faq-a{padding:1rem 1.2rem;color:#475569}
.tags-links{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.8rem}
.tags-links a{background:#eef4f1;color:var(--green-dark);font-size:.82rem;font-weight:600;padding:.35rem .9rem;border-radius:999px}
.author-box{display:flex;gap:1rem;background:#f6fbf8;border:1px solid var(--line);border-radius:10px;padding:1.3rem;margin-top:1.8rem;align-items:center}
.author-box .avatar{border-radius:50%;flex:none}
.post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.6rem}
.post-navigation a{background:#fff;border:1px solid var(--line);border-radius:10px;padding:1rem 1.2rem;display:block;color:var(--green-dark);font-weight:600}

/* ============ Sidebar & widgets ============ */
.sidebar{display:flex;flex-direction:column;gap:1.4rem}
.widget{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.4rem}
.widget h2.widget-title,.widget .widgettitle{font-size:1.02rem;color:var(--green-dark);margin-bottom:1rem;padding-bottom:.6rem;border-bottom:2px solid var(--gold);display:inline-block}
.widget ul{list-style:none;margin:0}
.widget li{margin:.6rem 0;font-size:.94rem}
.widget a{color:#334155;font-weight:600}
.widget a:hover{color:var(--gold-dark)}
.widget select,.widget input[type="search"]{width:100%;padding:.7rem;border:1.5px solid var(--line);border-radius:8px}

/* ============ Pages ============ */
.page-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:2.4rem;max-width:860px;margin:2.4rem auto}
.page-card h1{color:var(--green-dark);letter-spacing:-.5px;margin-bottom:1rem;font-size:2rem}
.page-card .entry-content h2{font-size:1.35rem}
.updated{font-size:.85rem;color:var(--muted);margin-bottom:1.2rem}

/* ============ Comments ============ */
.comments-area{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem;margin-top:1.6rem}
.comments-area h2{color:var(--green-dark);font-size:1.3rem;margin-bottom:1rem}
.comment-list{list-style:none;margin:0}
.comment{border-bottom:1px solid var(--line);padding:1rem 0}
.comment-form input,.comment-form textarea{width:100%;padding:.8rem;border:1.5px solid var(--line);border-radius:8px;margin-bottom:.8rem;font-family:inherit}
.comment-form .submit{background:var(--green);color:#fff;border:0;padding:.8rem 1.6rem;border-radius:10px;font-weight:700;cursor:pointer}

/* ============ Footer ============ */
.site-footer{background:#053b2c;color:#b9d8c9;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem;padding:3rem 0 2rem}
.site-footer h2.widget-title{color:#fff;font-size:1rem;margin-bottom:1rem}
.site-footer ul{list-style:none;margin:0}
.site-footer li{margin:.55rem 0;font-size:.92rem}
.site-footer a{color:#b9d8c9}
.site-footer a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:1.2rem 0;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.85rem}
.footer-bottom .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:1.2rem;flex-wrap:wrap}
.footer-legal a{color:#cfe3d4;font-size:.85rem}
.footer-legal a:hover{color:#fff}

/* ============ Pagination / misc ============ */
.pagination{display:flex;gap:.5rem;justify-content:center;margin-top:2rem;flex-wrap:wrap}
.pagination a,.pagination span{padding:.6rem 1rem;border-radius:8px;background:#fff;border:1px solid var(--line);font-weight:700;color:var(--green-dark)}
.pagination .current{background:var(--green);color:#fff;border-color:var(--green)}
.nothing-found{text-align:center;padding:4rem 0}
.nothing-found h1{color:var(--green-dark);margin-bottom:1rem}

/* ============ Responsive ============ */
@media(max-width:960px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .post-wrap{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  body{font-size:16px}
  .grid{grid-template-columns:1fr}
  .nav-toggle{display:block}
  .main-nav{position:absolute;top:100%;left:0;right:0;background:#053b2c;flex-direction:column;align-items:stretch;padding:.6rem;display:none;box-shadow:0 10px 20px rgba(0,0,0,.25)}
  .main-nav.toggled ul{display:flex;flex-direction:column;align-items:stretch}
  .main-nav.toggled{display:block}
  .header-inner{position:relative;flex-wrap:wrap}
  .article-body{padding:1.4rem 1.2rem}
  .page-card{padding:1.6rem 1.2rem}
  .post-navigation{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero{padding:3rem 0 2.6rem}
}
