/*
Theme Name: Fresh Note Health
Theme URI: https://example.com/
Author: Ehyperlink
Description: Dark premium health magazine inspired by the approved Option 1 mockup, with exact-style two-row header/footer, image-led categories, contextual internal links, and robust category archives.
Version: 1.1.0
Text Domain: fresh-note-health
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{
 --fnh-bg:#04131f;--fnh-bg2:#071c2a;--fnh-panel:#0a2230;--fnh-panel2:#0d2938;
 --fnh-paper:#f5fbff;--fnh-text:#eaf7f7;--fnh-ink:#102c34;--fnh-green:#50e68b;
 --fnh-teal:#22c9b7;--fnh-cyan:#4ed7f2;--fnh-purple:#8a6df0;--fnh-orange:#ffae57;
 --fnh-line:#1b3b49;--fnh-muted:#8fb0b8;--fnh-ext:#ff5d8d;--fnh-shadow:0 20px 50px rgba(0,0,0,.28);
}
.fnh-site,.fnh-site *{box-sizing:border-box;min-width:0}
.fnh-site{background:var(--fnh-bg);color:var(--fnh-text);font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}
.fnh-site a{color:inherit;text-decoration:none}.fnh-site img{display:block;max-width:100%;height:auto}
.fnh-wrap{width:min(1600px,calc(100% - 46px));margin:auto}

/* exact-style dark header */
.fnh-header{position:sticky;top:0;z-index:999;background:rgba(4,19,31,.985);backdrop-filter:blur(12px);border-bottom:1px solid #123345;box-shadow:0 8px 24px rgba(0,0,0,.24)}
.admin-bar .fnh-header{top:32px}
.fnh-head-top{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid #123345}
.fnh-logo{display:flex;align-items:center;gap:13px}
.fnh-logo-mark{width:58px;height:58px;border-radius:50%;position:relative;background:radial-gradient(circle at 40% 38%,#48eaa0 0 12%,transparent 13%),linear-gradient(145deg,#0d594e,#0b2230);border:2px solid #22c9b7;box-shadow:0 0 0 5px rgba(34,201,183,.08)}
.fnh-logo-mark:before,.fnh-logo-mark:after{content:"";position:absolute;background:#55ed95;border-radius:100% 0 100% 0}
.fnh-logo-mark:before{width:19px;height:34px;left:13px;top:12px;transform:rotate(-28deg)}
.fnh-logo-mark:after{width:19px;height:34px;right:13px;top:12px;transform:rotate(28deg)}
.fnh-logo-text strong{display:block;font:700 28px/1 Georgia,"Times New Roman",serif;color:#fff}
.fnh-logo-text strong em{font-style:normal;color:#34d8d7}
.fnh-logo-text small{display:block;margin-top:5px;font-size:8px;letter-spacing:.13em;text-transform:uppercase;color:#9eb8c2}
.fnh-search{width:100%;max-width:350px;min-height:44px;display:grid;grid-template-columns:1fr 48px;border:1px solid #244451;border-radius:999px;overflow:hidden;background:#0a2230}
.fnh-search input{border:0;outline:0;background:transparent;color:#fff;padding:0 16px;font-size:12px}
.fnh-search input::placeholder{color:#7f9aa5}
.fnh-search button{border:0;background:linear-gradient(135deg,#48e28b,#35cb7b);color:#072317;font-size:17px;font-weight:900}
.fnh-head-nav{min-height:52px;display:flex;align-items:center;justify-content:center}
.fnh-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.fnh-nav a{display:flex;align-items:center;gap:7px;padding:9px 15px;border-radius:999px;font-size:12px;font-weight:800;color:#e9f4f5}
.fnh-nav a:hover{background:#0c2937;color:#52e98c}
.fnh-nav a:before{color:#4be88b;font-size:14px}
.fnh-nav li:nth-child(1) a:before{content:"🦷"}.fnh-nav li:nth-child(2) a:before{content:"✣"}.fnh-nav li:nth-child(3) a:before{content:"🏋"}.fnh-nav li:nth-child(4) a:before{content:"♥"}.fnh-nav li:nth-child(5) a:before{content:"✚"}

/* hero */
.fnh-hero{position:relative;overflow:hidden;background:#061925}
.fnh-hero-bg{position:absolute;inset:0}.fnh-hero-bg img{width:100%;height:100%;object-fit:cover}
.fnh-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,19,31,.98) 0 42%,rgba(4,19,31,.58) 62%,rgba(4,19,31,.18) 100%)}
.fnh-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.08fr .92fr;gap:36px;align-items:center;min-height:650px;padding:66px 0}
.fnh-kicker{font-size:10px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:#56e891}
.fnh-hero h1{max-width:760px;font:700 clamp(4.1rem,5.8vw,6.4rem)/.9 Georgia,"Times New Roman",serif;letter-spacing:-.05em;margin:17px 0;color:#fff}
.fnh-hero h1 span{color:#56e891}.fnh-hero p{max-width:690px;font-size:17px;line-height:1.6;color:#d3e7ea}
.fnh-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.fnh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:999px;font-size:13px;font-weight:900}.fnh-btn.primary{background:#51e58b;color:#08271a}.fnh-btn.secondary{background:#0b2634;border:1px solid #2a5260;color:#fff}
.fnh-hero-side{justify-self:end;width:min(420px,100%);background:rgba(8,31,43,.9);border:1px solid #244651;border-radius:22px;padding:20px;box-shadow:var(--fnh-shadow)}
.fnh-metric{display:grid;grid-template-columns:50px 1fr;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #1c3c49}.fnh-metric:last-child{border-bottom:0}.fnh-metric-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#123e42;color:#4ee58d}.fnh-metric b{font-size:18px}.fnh-metric small{display:block;color:#9db7be;font-size:10px}

/* categories */
.fnh-section{padding:48px 0}.fnh-section-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:18px}.fnh-section-head h2{font:700 2rem/1 Georgia,serif;margin:0}.fnh-section-head p{max-width:460px;margin:0;text-align:right;color:#8fa9b0;font-size:11px}
.fnh-cat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.fnh-cat{position:relative;height:185px;border-radius:16px;overflow:hidden;border:1px solid #173945;background:#0b2230;box-shadow:0 10px 26px rgba(0,0,0,.18);transition:.2s}.fnh-cat:hover{transform:translateY(-4px);border-color:#3bd68a}.fnh-cat img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.fnh-cat:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03) 20%,rgba(4,19,31,.82) 100%)}
.fnh-cat-copy{position:absolute;left:14px;right:14px;bottom:13px;z-index:2}.fnh-cat-copy small{font-size:8px;color:#58e694;font-weight:900}.fnh-cat-copy strong{display:block;margin-top:5px;font:700 14px/1.12 Georgia,serif;color:#fff}.fnh-cat-copy b{display:block;margin-top:6px;font-size:9px;color:#b6d8dd}

/* feature + latest */
.fnh-main{display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:start}.fnh-feature{display:grid;grid-template-columns:1.02fr .98fr;background:#092330;border:1px solid #193e4b;border-radius:22px;overflow:hidden;box-shadow:var(--fnh-shadow)}.fnh-feature-img{min-height:410px}.fnh-feature-img img{width:100%;height:100%;object-fit:cover}.fnh-feature-copy{padding:28px}.fnh-tag{display:inline-block;padding:7px 11px;border-radius:999px;background:#173c38;color:#57e692;font-size:9px;font-weight:900}.fnh-feature h3{font:700 2rem/1.05 Georgia,serif;margin:12px 0;color:#fff}.fnh-meta{font-size:10px;color:#91abb4}.fnh-feature p{font-size:13px;line-height:1.6;color:#b8d0d4}
.fnh-side-list{display:flex;flex-direction:column;gap:10px}.fnh-side-item{display:grid;grid-template-columns:110px 1fr;gap:11px;background:#0a2230;border:1px solid #183945;border-radius:15px;padding:9px}.fnh-side-item img{width:110px;height:78px;object-fit:cover;border-radius:9px}.fnh-side-item small{font-size:8px;color:#55e68f;font-weight:900}.fnh-side-item h4{font:700 13px/1.2 Georgia,serif;margin:5px 0;color:#fff}
.fnh-latest-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.fnh-card{background:#08212d;border:1px solid #173846;border-radius:16px;overflow:hidden}.fnh-card img{width:100%;height:200px;object-fit:cover}.fnh-card-copy{padding:15px}.fnh-card h3{font:700 1.05rem/1.15 Georgia,serif;margin:8px 0;color:#fff}.fnh-card p{font-size:11px;line-height:1.5;color:#98b3bb}

/* single */
.fnh-post-hero{padding:48px 0 28px;background:#061925;border-bottom:1px solid #183846}.fnh-post-hero h1{max-width:1120px;font:700 clamp(2.9rem,4.8vw,5rem)/.97 Georgia,serif;margin:12px 0;color:#fff}.fnh-post-meta{font-size:11px;color:#90aab1}
.fnh-post-layout{width:min(1450px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;padding:38px 0 62px}
.fnh-article{background:#071f2a;border:1px solid #173844;border-radius:22px;padding:34px;box-shadow:var(--fnh-shadow);overflow:hidden}.fnh-featured img{width:100%;max-height:560px;object-fit:cover;border-radius:18px;margin-bottom:26px}
.fnh-entry{font:16px/1.8 Arial,Helvetica,sans-serif;color:#dce9eb}.fnh-entry h2,.fnh-entry h3{font-family:Georgia,"Times New Roman",serif;color:#fff}.fnh-entry img{border-radius:14px;margin:20px auto}.fnh-entry a{color:#58c8ff;text-decoration:underline;text-underline-offset:3px}.fnh-entry a.fnh-external,.fnh-entry a[target="_blank"]{color:var(--fnh-ext)!important}.fnh-entry p,.fnh-entry li,.fnh-entry a,.fnh-entry span,.fnh-entry strong{overflow-wrap:anywhere;white-space:normal}
.fnh-context{margin:28px 0;padding:17px;border-radius:16px;background:#0b2937;border:1px solid #334054;border-left:4px solid #ff5d8d}.fnh-context small{display:block;color:#ff7ba0;font-size:9px;font-weight:900;text-transform:uppercase;margin-bottom:7px}.fnh-context a{display:flex;justify-content:space-between;gap:14px;color:#fff!important;text-decoration:none!important;font-weight:800}
.fnh-sidebar{display:flex;flex-direction:column;gap:16px}.fnh-sidebox{background:#08212d;border:1px solid #173846;border-radius:18px;padding:18px}.fnh-sidebox h3{font:700 1.05rem Georgia,serif;margin:0 0 12px;color:#fff}.fnh-sidebox a{display:block;padding:10px 0;border-bottom:1px solid #173846;font-size:12px}.fnh-sidebox a:last-child{border-bottom:0}
.fnh-disclaimer{margin-top:26px;padding:16px;border:1px solid #173846;border-radius:15px;background:#0b2935;color:#9ab4ba;font-size:11px}.fnh-related{margin-top:34px}.fnh-related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.fnh-related-card{background:#09222e;border:1px solid #173846;border-radius:15px;overflow:hidden}.fnh-related-card img{width:100%;height:150px;object-fit:cover}.fnh-related-card div{padding:11px}.fnh-related-card h3{margin:0;font:700 .95rem/1.15 Georgia,serif;color:#fff}

/* category archive */
.fnh-cat-hero{background:#061925;padding:50px 0;border-bottom:1px solid #173846}.fnh-cat-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}.fnh-cat-hero h1{font:700 clamp(3.5rem,5.2vw,5.8rem)/.94 Georgia,serif;margin:12px 0;color:#fff}.fnh-cat-hero p{color:#9db7bd;line-height:1.6}.fnh-cat-hero-img{justify-self:end;width:min(620px,100%);height:340px;border-radius:22px;overflow:hidden;border:1px solid #244451}.fnh-cat-hero-img img{width:100%;height:100%;object-fit:cover}
.fnh-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.fnh-category-card{background:#08212d;border:1px solid #173846;border-radius:18px;overflow:hidden}.fnh-category-card-img{height:230px;display:block}.fnh-category-card-img img{width:100%;height:100%;object-fit:cover}.fnh-category-card-copy{padding:17px}.fnh-category-card h3{font:700 1.17rem/1.15 Georgia,serif;margin:9px 0;color:#fff}.fnh-category-card p{font-size:12px;color:#99b2b8}.fnh-read{color:#58e693!important;font-size:11px;font-weight:900}

/* exact-style footer */
.fnh-footer{background:#03111b;color:#dceff0;border-top:1px solid #173846;position:relative;overflow:hidden}
.fnh-footer:after{content:"";position:absolute;right:-100px;bottom:-80px;width:420px;height:300px;background:radial-gradient(circle,#143e32 0,#0a2a24 35%,transparent 70%);opacity:.65;pointer-events:none}
.fnh-footer-main{display:grid;grid-template-columns:1.6fr 1fr 1.15fr 1.25fr 1.15fr;gap:28px;padding:34px 0 26px;position:relative;z-index:2}
.fnh-footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:12px}.fnh-footer-brand .fnh-logo-mark{width:48px;height:48px}.fnh-footer-brand strong{font:700 1.45rem Georgia,serif;color:#fff}.fnh-footer p{font-size:10px;line-height:1.55;color:#93afb7}.fnh-footer h3{font-size:.9rem;margin:0 0 10px;color:#fff}.fnh-footer-col{display:flex;flex-direction:column;gap:7px}.fnh-footer-col a{font-size:10px;color:#bed3d7}
.fnh-footer-slogan{display:flex;align-items:center;justify-content:center;text-align:center;font:italic 700 1.5rem/1.05 Georgia,serif;color:#dff4c4}.fnh-footer-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid #163541;padding:14px 0 20px;font-size:9px;color:#7f9ba3;position:relative;z-index:2}

@media(max-width:1280px){.fnh-cat-grid{grid-template-columns:repeat(3,1fr)}.fnh-latest-grid{grid-template-columns:repeat(3,1fr)}.fnh-footer-main{grid-template-columns:1.4fr 1fr 1fr 1fr}}
@media(max-width:920px){.admin-bar .fnh-header{top:46px}.fnh-head-top{padding:12px 0;min-height:auto}.fnh-search{max-width:260px}.fnh-nav ul{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.fnh-hero-grid,.fnh-main,.fnh-cat-hero-grid,.fnh-post-layout{grid-template-columns:1fr}.fnh-hero-grid{min-height:auto;padding:52px 0}.fnh-cat-grid,.fnh-category-grid{grid-template-columns:repeat(2,1fr)}.fnh-feature{grid-template-columns:1fr}.fnh-latest-grid{grid-template-columns:repeat(2,1fr)}.fnh-related-grid{grid-template-columns:repeat(2,1fr)}.fnh-footer-main{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.fnh-wrap{width:min(100% - 24px,1600px)}.fnh-head-top{flex-direction:column;align-items:stretch}.fnh-search{max-width:none}.fnh-logo-text strong{font-size:21px}.fnh-hero h1{font-size:3.25rem}.fnh-cat-grid,.fnh-category-grid,.fnh-latest-grid,.fnh-related-grid,.fnh-footer-main{grid-template-columns:1fr}.fnh-article{padding:20px 15px}}


/* ======================================================
   v1.1 Post Sidebar Removed
   ====================================================== */
.fnh-post-wrap{
  width:min(1120px,calc(100% - 34px));
  margin:auto;
  padding:40px 0 64px;
}

.fnh-post-wrap .fnh-article{
  width:100%;
  margin:0 auto;
}

/* Permanently remove old post sidebar blocks */
.fnh-sidebar,
.fnh-sidebox{
  display:none!important;
}

/* Old grid class neutralized if cached markup exists */
.fnh-post-layout{
  width:min(1120px,calc(100% - 34px))!important;
  margin:auto!important;
  display:block!important;
  padding:40px 0 64px!important;
}

@media(max-width:620px){
  .fnh-post-wrap,
  .fnh-post-layout{
    width:min(100% - 20px,1120px)!important;
  }
}
