/*
Theme Name: NewcomerPath
Theme URI: https://example.com/newcomerpath
Author: NewcomerPath
Author URI: https://example.com
Description: Final installable WordPress theme for NewcomerPath, a U.S. newcomer information blog covering relocation, immigration, schools, states, cities, first 30 days, and local professional directories. Responsive, Gutenberg-friendly and AdSense-ready.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newcomerpath
Tags: blog, news, education, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root{
  --np-navy:#0b2d5c;
  --np-navy-2:#113d78;
  --np-red:#d93032;
  --np-gold:#d89b2b;
  --np-ink:#13233c;
  --np-muted:#667085;
  --np-line:#e7eaf0;
  --np-soft:#f6f8fb;
  --np-white:#fff;
  --np-radius:18px;
  --np-shadow:0 16px 42px rgba(12,45,92,.10);
  --np-max:1320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--np-ink);
  background:#fff;
  line-height:1.65;
}
img{max-width:100%;height:auto}
a{color:var(--np-navy-2);text-decoration:none}
a:hover{color:var(--np-red)}
button,input,select,textarea{font:inherit}
.np-container{width:min(var(--np-max), calc(100% - 40px));margin:0 auto}

/* Utility bar */
.np-utility{background:var(--np-navy);color:#fff;font-size:13px}
.np-utility-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.np-utility a{color:#fff;opacity:.95}
.np-utility-menu{display:flex;gap:20px;align-items:center}
.np-utility-menu ul,.np-main-menu ul{list-style:none;margin:0;padding:0}
.np-utility-menu .menu{display:flex;gap:20px;align-items:center}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--np-line);position:sticky;top:0;z-index:99}
.np-header-inner{height:96px;display:flex;align-items:center;gap:34px}
.np-brand{display:flex;align-items:center;gap:12px;min-width:300px}
.np-brand .custom-logo{max-height:64px;width:auto}
.np-brand-fallback{display:flex;align-items:center;gap:12px}
.np-brand-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0b2d5c,#174d91);color:#fff;font-weight:900;font-family:Georgia,serif;font-size:26px;box-shadow:0 8px 18px rgba(11,45,92,.18)}
.np-site-title{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:31px;color:var(--np-navy);line-height:1}
.np-site-title .accent{color:var(--np-red)}
.np-tagline{display:block;font-size:12px;color:#3c4b63;margin-top:5px;font-family:Inter,sans-serif;font-weight:500}
.np-main-menu{margin-left:auto;display:flex;align-items:center}
.np-main-menu .menu{display:flex;gap:30px;align-items:center}
.np-main-menu a{color:#142442;text-transform:uppercase;font-size:13px;font-weight:800;letter-spacing:.015em;padding:34px 0 31px;display:block;border-bottom:3px solid transparent}
.np-main-menu a:hover,.np-main-menu .current-menu-item>a{color:var(--np-navy-2);border-bottom-color:var(--np-navy-2)}
.np-menu-toggle{display:none;border:0;background:transparent;font-size:27px;color:var(--np-navy);cursor:pointer}
.np-search-link{font-size:20px;margin-left:10px}

/* Hero */
.np-hero{position:relative;overflow:hidden;background:linear-gradient(90deg,#fff9f2 0%,#f3f7fb 49%,#dfeaf4 100%)}
.np-hero::after{
  content:"";
  position:absolute;right:0;top:0;bottom:0;width:62%;
  background-image:linear-gradient(90deg,rgba(246,248,251,.05),rgba(246,248,251,0)), var(--np-hero);
  background-position:center,right center;background-repeat:no-repeat;background-size:cover;
  opacity:.96;
  pointer-events:none;
}
.np-hero::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(255,249,242,.98) 0%,rgba(255,249,242,.91) 31%,rgba(255,249,242,.33) 53%,rgba(255,255,255,0) 70%);
  z-index:1;pointer-events:none;
}
.np-hero-inner{position:relative;z-index:2;min-height:390px;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:42px;align-items:center;padding:42px 0}
.np-hero-copy{max-width:560px}
.np-eyebrow{color:var(--np-red);font-size:13px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:10px}
.np-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:54px;line-height:1.04;color:var(--np-navy);margin:0 0 18px;letter-spacing:-.02em}
.np-hero p{font-size:17px;color:#405069;max-width:570px;margin:0 0 22px}
.np-actions{display:flex;gap:14px;flex-wrap:wrap}
.np-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:14px 22px;font-weight:800;font-size:14px;border:1px solid var(--np-navy);transition:.2s}
.np-btn-primary{background:var(--np-navy);color:#fff}
.np-btn-primary:hover{background:#08244b;color:#fff;transform:translateY(-1px)}
.np-btn-secondary{background:rgba(255,255,255,.88);color:var(--np-navy)}
.np-btn-secondary:hover{background:#fff}
.np-trust-row{display:flex;gap:26px;flex-wrap:wrap;margin-top:32px;font-size:12px;color:#3d4f67}
.np-trust-item{display:flex;gap:9px;align-items:center}
.np-trust-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--np-gold);border:1px solid rgba(216,155,43,.45);background:rgba(255,255,255,.72);font-weight:900}

/* State finder */
.np-state-card{background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.75);border-radius:20px;padding:28px;box-shadow:var(--np-shadow);backdrop-filter:blur(10px)}
.np-state-card h2{font-family:Georgia,"Times New Roman",serif;font-size:24px;margin:0 0 8px;color:var(--np-navy)}
.np-state-card p{font-size:14px;margin-bottom:16px}
.np-state-card select{width:100%;padding:13px 14px;border:1px solid #d8dee8;border-radius:8px;background:#fff;margin-bottom:12px}
.np-state-card .np-btn{width:100%}
.np-popular-states{border-top:1px solid var(--np-line);margin-top:20px;padding-top:16px}
.np-popular-states strong{font-size:13px}
.np-state-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.np-state-pill{border:1px solid #dfe4ec;border-radius:999px;padding:7px 12px;background:#fff;font-size:12px;font-weight:700;color:#22334d}
.np-state-pill:hover{border-color:#aebbd0;color:var(--np-navy)}

/* Main layout */
.np-main-wrap{padding:34px 0 70px}
.np-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px}
.np-section{margin-bottom:34px}
.np-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.np-section-title{font-family:Georgia,"Times New Roman",serif;color:var(--np-navy);font-size:25px;margin:0}
.np-view-all{font-size:12px;font-weight:800}

/* Category cards */
.np-category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.np-category-card{border:1px solid var(--np-line);border-radius:14px;background:#fff;padding:24px 20px;min-height:205px;transition:.2s;box-shadow:0 5px 18px rgba(15,35,66,.03)}
.np-category-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(13,46,91,.09)}
.np-cat-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin-bottom:14px;font-size:22px;background:#eef4ff}
.np-category-card:nth-child(2) .np-cat-icon{background:#e7f5ef}
.np-category-card:nth-child(3) .np-cat-icon{background:#fff0f0}
.np-category-card:nth-child(4) .np-cat-icon{background:#fff4dd}
.np-category-card:nth-child(5) .np-cat-icon{background:#f3ecff}
.np-category-card h3{margin:0 0 7px;font-size:16px}
.np-category-card p{margin:0;color:var(--np-muted);font-size:13px}
.np-card-link{display:inline-block;margin-top:15px;font-size:12px;font-weight:800}

/* Posts */
.np-post-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.np-post-card{border:1px solid var(--np-line);border-radius:12px;overflow:hidden;background:#fff;transition:.2s}
.np-post-card:hover{box-shadow:0 12px 28px rgba(13,46,91,.09);transform:translateY(-2px)}
.np-thumb{height:145px;background:linear-gradient(135deg,#dfe8f2,#f2f5f9);overflow:hidden}
.np-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.np-thumb-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#6d7d93;font-size:30px;background:linear-gradient(135deg,#dfe8f2,#eef3f8)}
.np-post-body{padding:14px}
.np-post-cat{display:inline-block;background:var(--np-navy);color:#fff;font-size:9px;font-weight:900;padding:4px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.04em;margin-top:-25px;position:relative}
.np-post-card h3{font-size:15px;line-height:1.35;margin:11px 0 10px}
.np-post-card h3 a{color:#142441}
.np-meta{font-size:11px;color:#8a94a6}

/* Sidebar */
.np-sidebar{border-left:1px solid var(--np-line);padding-left:26px}
.np-widget{border:1px solid var(--np-line);border-radius:13px;padding:20px;margin-bottom:18px;background:#fff}
.np-widget-title{margin:0 0 14px;color:var(--np-navy);font-size:16px;display:flex;align-items:center;gap:8px}
.np-popular-list{display:grid;gap:12px}
.np-popular-item{display:grid;grid-template-columns:56px 1fr;gap:10px;align-items:center}
.np-popular-thumb{width:56px;height:46px;border-radius:6px;background:#edf1f5;overflow:hidden}
.np-popular-thumb img{width:100%;height:100%;object-fit:cover}
.np-popular-item h4{font-size:12px;line-height:1.3;margin:0 0 3px}
.np-popular-item small{color:#8a94a6;font-size:10px}
.np-newsletter{background:#fbfcff}
.np-newsletter p{font-size:13px;color:#667085}
.np-newsletter input{width:100%;padding:12px;border:1px solid #dbe1e9;border-radius:7px;margin:6px 0 10px}
.np-newsletter button{width:100%;border:0;background:var(--np-navy);color:#fff;padding:12px;border-radius:7px;font-weight:800}
.widget ul{padding-left:18px}
.widget-title{font-size:16px;color:var(--np-navy)}

/* Standard content */
.np-page-wrap{padding:50px 0}
.np-article-shell{display:grid;grid-template-columns:minmax(0,860px) 320px;gap:46px}
.entry-title{font-family:Georgia,"Times New Roman",serif;font-size:42px;line-height:1.15;color:var(--np-navy)}
.entry-content{font-size:17px;color:#26364e}
.entry-content h2,.entry-content h3{color:var(--np-navy)}
.entry-content img{border-radius:12px}
.np-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.np-pagination{margin-top:30px}

/* Ad slot */
.np-ad-slot{margin:24px 0;padding:14px;border:1px dashed #cfd7e2;border-radius:10px;background:#fafbfd;text-align:center;color:#8b95a5;font-size:12px}

/* Footer */
.site-footer{background:#082447;color:#dbe6f2;padding:48px 0 25px}
.np-footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:38px}
.site-footer h4{color:#fff;margin-top:0}
.site-footer a{color:#c9d7e6}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:7px 0}
.np-footer-bottom{border-top:1px solid rgba(255,255,255,.13);margin-top:35px;padding-top:18px;font-size:12px;color:#aebed0}

/* Comments */
.comment-list{list-style:none;padding:0}
.comment-body{padding:18px;border:1px solid var(--np-line);border-radius:10px;margin-bottom:12px}

/* Responsive */
@media(max-width:1100px){
  .np-category-grid{grid-template-columns:repeat(3,1fr)}
  .np-post-grid{grid-template-columns:repeat(2,1fr)}
  .np-main-menu .menu{gap:16px}
  .np-brand{min-width:255px}
}
@media(max-width:900px){
  .np-utility-menu{display:none}
  .np-header-inner{height:78px}
  .np-menu-toggle{display:block;margin-left:auto}
  .np-main-menu{display:none;position:absolute;top:116px;left:0;right:0;background:#fff;border-bottom:1px solid var(--np-line);padding:10px 20px 20px}
  .np-main-menu.open{display:block}
  .np-main-menu .menu{display:block}
  .np-main-menu a{padding:12px 0;border:0}
  .np-search-link{display:none}
  .np-hero-inner{grid-template-columns:1fr;padding:45px 0 30px}
  .np-state-card{max-width:520px}
  .np-hero::after{width:100%;opacity:.22}
  .np-hero::before{background:rgba(255,250,244,.82)}
  .np-content-grid,.np-article-shell{grid-template-columns:1fr}
  .np-sidebar{border-left:0;padding-left:0}
  .np-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .np-container{width:min(100% - 26px,var(--np-max))}
  .np-brand{min-width:0}
  .np-site-title{font-size:24px}
  .np-tagline{display:none}
  .np-brand-mark{width:46px;height:46px}
  .np-hero h1{font-size:40px}
  .np-category-grid,.np-post-grid,.np-archive-grid{grid-template-columns:1fr}
  .np-category-card{min-height:0}
  .np-footer-grid{grid-template-columns:1fr}
  .np-utility-inner{justify-content:center;text-align:center}
  .entry-title{font-size:34px}
}
