/*
Theme Name: Global Health Guide
Theme URI: https://globalpharmacymeds.com/
Author: Global Health Guide
Description: A warm, illustration-forward health-education theme built for in-depth guides, articles, tips, and interactive tools. Includes auto-assigned illustrations, a guides index, a tools index, a partner-network module, and a homepage banner slot.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
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: globalhealth
Tags: education, health, blog, custom-menu, featured-images, translation-ready
*/

:root{
  --gh-teal:#1B8B8F;
  --gh-teal-dk:#10474A;
  --gh-sun:#F5B93F;
  --gh-coral:#EF7C6B;
  --gh-mint:#E8F4F1;
  --gh-sage:#9FCFC5;
  --gh-ink:#2E4A4C;
  --gh-muted:#5C7375;
  --gh-paper:#FFFFFF;
  --gh-soft:#F5FAF9;
  --gh-line:#DCEAE7;
  --gh-r:20px;
  --gh-r-sm:14px;
  --gh-display:'Fraunces',Georgia,serif;
  --gh-body:'Nunito Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --gh-shadow:0 14px 34px rgba(16,71,74,.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{font-family:var(--gh-body);font-size:17.5px;line-height:1.7;color:var(--gh-ink);background:var(--gh-paper);-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--gh-teal);text-underline-offset:3px}
a:hover{color:var(--gh-teal-dk)}
:focus-visible{outline:3px solid var(--gh-coral);outline-offset:3px;border-radius:6px}

h1,h2,h3,h4{font-family:var(--gh-display);color:var(--gh-teal-dk);line-height:1.15;font-weight:600;letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,4.6vw,3.35rem)}
h2{font-size:clamp(1.6rem,3.1vw,2.25rem)}
h3{font-size:1.3rem}
h4{font-size:1.05rem}

.gh-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.gh-narrow{max-width:760px;margin:0 auto;padding:0 24px}
.gh-eyebrow{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--gh-teal);margin-bottom:10px}
.gh-lede{font-size:1.12rem;color:var(--gh-muted)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:12px;top:12px;z-index:200;background:#fff;padding:10px 16px;border-radius:10px}

/* ---------- Header ---------- */
.gh-topbar{background:var(--gh-teal-dk);color:#CFEDE8;font-size:.84rem;text-align:center;padding:9px 16px}
.gh-topbar a{color:var(--gh-sun);font-weight:700;text-decoration:none}
.gh-header{background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--gh-line);position:sticky;top:0;z-index:60}
.gh-header-in{max-width:1180px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.gh-logo{display:flex;align-items:center;gap:11px;text-decoration:none}
.gh-logo img,.gh-logo svg{width:46px;height:46px;flex:none}
.gh-logo b{font-family:var(--gh-display);font-size:1.22rem;color:var(--gh-teal-dk);display:block;line-height:1.1;font-weight:600}
.gh-logo small{display:block;font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gh-coral);font-weight:800}
.gh-nav ul{display:flex;gap:4px;list-style:none;flex-wrap:wrap;align-items:center}
.gh-nav a{display:block;padding:9px 14px;border-radius:999px;text-decoration:none;font-weight:700;font-size:.95rem;color:var(--gh-ink)}
.gh-nav a:hover{background:var(--gh-mint);color:var(--gh-teal-dk)}
.gh-nav .current-menu-item>a,.gh-nav .current_page_item>a{background:var(--gh-mint);color:var(--gh-teal-dk)}
.gh-menu-toggle{display:none;background:var(--gh-teal);color:#fff;border:0;border-radius:999px;padding:10px 18px;font-weight:800;cursor:pointer;font-family:inherit}
@media(max-width:900px){
  .gh-menu-toggle{display:block}
  .gh-header-in{flex-wrap:wrap}
  .gh-nav{display:none;width:100%;padding-bottom:10px}
  .gh-nav.open{display:block}
  .gh-nav ul{flex-direction:column;align-items:stretch}
}

/* ---------- Hero ---------- */
.gh-hero{background:linear-gradient(170deg,var(--gh-mint) 0%,#F7FCFB 100%);padding:64px 0 70px;position:relative;overflow:hidden}
.gh-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center;max-width:1180px;margin:0 auto;padding:0 24px}
@media(max-width:880px){.gh-hero-grid{grid-template-columns:1fr;text-align:left}.gh-hero-art{order:-1;max-width:400px}}
.gh-hero p.gh-lede{margin:16px 0 26px;max-width:52ch;font-size:1.15rem}
.gh-hero-art svg,.gh-hero-art img{width:100%}
.gh-blob{position:absolute;border-radius:50%;filter:blur(2px);opacity:.35;pointer-events:none}
.gh-blob-1{width:280px;height:280px;background:var(--gh-sage);top:-90px;right:-70px}
.gh-blob-2{width:180px;height:180px;background:var(--gh-sun);bottom:-80px;left:-60px;opacity:.28}

.gh-btn{display:inline-block;background:var(--gh-teal);color:#fff;font-weight:800;padding:14px 28px;border-radius:999px;text-decoration:none;border:0;cursor:pointer;font-size:1rem;font-family:inherit;box-shadow:0 8px 18px rgba(27,139,143,.28);transition:transform .15s ease}
.gh-btn:hover{background:var(--gh-teal-dk);color:#fff;transform:translateY(-2px)}
.gh-btn-2{display:inline-block;background:#fff;color:var(--gh-teal-dk);border:2px solid var(--gh-sage);font-weight:800;padding:12px 26px;border-radius:999px;text-decoration:none;margin-left:10px}
.gh-btn-2:hover{border-color:var(--gh-teal);color:var(--gh-teal-dk)}
@media(max-width:520px){.gh-btn-2{margin:10px 0 0}}

/* ---------- Sections ---------- */
.gh-section{padding:62px 0}
.gh-section-soft{background:var(--gh-soft)}
.gh-section-mint{background:var(--gh-mint)}
.gh-head{max-width:62ch;margin-bottom:32px}
.gh-head p{color:var(--gh-muted);margin-top:10px}
.gh-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:32px}

/* ---------- Cards ---------- */
.gh-grid{display:grid;gap:24px}
.gh-g3{grid-template-columns:repeat(3,1fr)}
.gh-g2{grid-template-columns:repeat(2,1fr)}
.gh-g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:980px){.gh-g3,.gh-g4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.gh-g3,.gh-g2,.gh-g4{grid-template-columns:1fr}}

.gh-card{background:#fff;border:1px solid var(--gh-line);border-radius:var(--gh-r);overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.gh-card:hover{transform:translateY(-5px);box-shadow:var(--gh-shadow)}
.gh-card-art{background:var(--gh-mint);aspect-ratio:16/9;overflow:hidden}
.gh-card-art img{width:100%;height:100%;object-fit:cover}
.gh-card-body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.gh-tag{display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--gh-teal);background:var(--gh-mint);padding:5px 11px;border-radius:999px;margin-bottom:11px;align-self:flex-start}
.gh-tag-guide{color:#9A5A12;background:#FDF0D8}
.gh-card h3{margin-bottom:8px;font-size:1.22rem}
.gh-card h3 a{text-decoration:none;color:var(--gh-teal-dk)}
.gh-card h3 a:hover{color:var(--gh-teal)}
.gh-card p{color:var(--gh-muted);font-size:.96rem;flex:1;margin-bottom:14px}
.gh-more{font-weight:800;text-decoration:none;font-size:.93rem}
.gh-more::after{content:" →"}

/* Tool cards */
.gh-tool{display:flex;flex-direction:column;background:#fff;border:1px solid var(--gh-line);border-radius:var(--gh-r);padding:26px;text-decoration:none;color:var(--gh-ink);transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.gh-tool:hover{transform:translateY(-5px);box-shadow:var(--gh-shadow);border-color:var(--gh-sage)}
.gh-tool-ico{width:56px;height:56px;border-radius:16px;background:var(--gh-mint);display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:14px}
.gh-tool h3{font-size:1.12rem;margin-bottom:6px}
.gh-tool p{font-size:.92rem;color:var(--gh-muted)}

/* Tips */
.gh-tip{background:#FDF6E6;border:1px solid #F2DFAE;border-left:6px solid var(--gh-sun);border-radius:var(--gh-r-sm);padding:20px 22px}
.gh-tip h4{color:#8A6410;margin-bottom:6px;font-family:var(--gh-body);font-weight:800;font-size:.98rem}
.gh-tip p{font-size:.95rem;color:#6E5518;margin:0}
.gh-tips-grid{display:grid;gap:18px;grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.gh-tips-grid{grid-template-columns:1fr}}

/* Banner */
.gh-banner{background:#fff;border:1px dashed var(--gh-sage);border-radius:var(--gh-r);padding:18px;text-align:center;margin:0 auto;max-width:800px}
.gh-banner img{margin:0 auto;border-radius:10px}
.gh-banner small{display:block;color:#8FA5A4;margin-top:8px;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase}

/* Network */
.gh-net{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.gh-net a{background:#fff;border:1px solid var(--gh-line);border-radius:var(--gh-r-sm);padding:20px;text-decoration:none;color:var(--gh-ink);display:block;transition:transform .15s ease,border-color .15s}
.gh-net a:hover{transform:translateY(-4px);border-color:var(--gh-teal)}
.gh-net strong{display:block;color:var(--gh-teal-dk);font-family:var(--gh-display);font-size:1.1rem;margin-bottom:5px}
.gh-net span{font-size:.9rem;color:var(--gh-muted)}

/* ---------- Post layout ---------- */
.gh-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;padding:48px 0 20px;max-width:1180px;margin:0 auto;padding-left:24px;padding-right:24px}
@media(max-width:980px){.gh-main{grid-template-columns:1fr}}
.gh-post-hero{background:var(--gh-mint);padding:44px 0 0}
.gh-post-hero .gh-narrow{padding-bottom:36px}
.gh-post-art{border-radius:var(--gh-r);overflow:hidden;margin:0 auto 0;max-width:820px}
.gh-meta{color:var(--gh-muted);font-size:.88rem;margin-top:12px;display:flex;gap:14px;flex-wrap:wrap}
.gh-entry{font-size:1.08rem}
.gh-entry>*+*{margin-top:1.1em}
.gh-entry h2{margin-top:1.8em;font-size:1.7rem}
.gh-entry h3{margin-top:1.5em;font-size:1.28rem}
.gh-entry ul,.gh-entry ol{padding-left:1.35em}
.gh-entry li+li{margin-top:.45em}
.gh-entry img{border-radius:var(--gh-r-sm)}
.gh-entry blockquote{border-left:5px solid var(--gh-sage);background:var(--gh-mint);padding:18px 22px;border-radius:0 var(--gh-r-sm) var(--gh-r-sm) 0;font-style:italic;color:var(--gh-teal-dk)}
.gh-entry table{width:100%;border-collapse:collapse;font-size:.96rem;border-radius:var(--gh-r-sm);overflow:hidden}
.gh-entry th{background:var(--gh-teal);color:#fff;text-align:left}
.gh-entry th,.gh-entry td{padding:11px 14px;border:1px solid var(--gh-line)}
.gh-entry tr:nth-child(even) td{background:var(--gh-soft)}
.gh-entry a{font-weight:600}
.gh-toc{background:var(--gh-soft);border:1px solid var(--gh-line);border-radius:var(--gh-r-sm);padding:20px 24px}
.gh-toc h4{margin-bottom:8px}
.gh-toc ol{padding-left:1.2em;font-size:.96rem}

/* Sidebar */
.gh-side .widget,.gh-side section{background:var(--gh-soft);border:1px solid var(--gh-line);border-radius:var(--gh-r);padding:22px;margin-bottom:22px}
.gh-side .widget-title{font-size:1.05rem;margin-bottom:12px}
.gh-side ul{list-style:none}
.gh-side li{border-bottom:1px solid var(--gh-line);padding:9px 0}
.gh-side li:last-child{border-bottom:0}
.gh-side a{text-decoration:none;font-weight:700;font-size:.95rem}

/* Disclaimer */
.gh-disclaimer{background:#FDF6E6;border:1px solid #F2DFAE;border-radius:var(--gh-r-sm);padding:16px 20px;font-size:.9rem;color:#6E5518;margin-top:32px}
.gh-disclaimer strong{color:#7A5A0E}

/* Search + pagination */
.gh-search{display:flex;gap:8px}
.gh-search input[type=search]{flex:1;padding:11px 16px;border:1px solid var(--gh-line);border-radius:999px;font:inherit;background:#fff}
.gh-pagination{display:flex;gap:8px;flex-wrap:wrap;margin:36px 0 0;padding:0 24px;max-width:1180px;margin-left:auto;margin-right:auto}
.gh-pagination a,.gh-pagination span{padding:9px 16px;border:1px solid var(--gh-line);border-radius:999px;text-decoration:none;font-weight:700;background:#fff}
.gh-pagination .current{background:var(--gh-teal);color:#fff;border-color:var(--gh-teal)}

/* CTA strip */
.gh-cta{background:linear-gradient(150deg,var(--gh-teal) 0%,var(--gh-teal-dk) 100%);color:#fff;border-radius:var(--gh-r);padding:46px;display:grid;grid-template-columns:1fr auto;gap:26px;align-items:center}
@media(max-width:760px){.gh-cta{grid-template-columns:1fr;padding:32px}}
.gh-cta h2{color:#fff}
.gh-cta p{color:#CFEDE8;margin-top:10px;max-width:52ch}
.gh-cta .gh-btn{background:var(--gh-sun);color:#4A3405;box-shadow:none}
.gh-cta .gh-btn:hover{background:#fff;color:var(--gh-teal-dk)}

/* Footer */
.gh-footer{background:var(--gh-teal-dk);color:#B8D8D6;margin-top:70px}
.gh-footer-in{max-width:1180px;margin:0 auto;padding:52px 24px 28px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px}
@media(max-width:900px){.gh-footer-in{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.gh-footer-in{grid-template-columns:1fr}}
.gh-footer h4{color:#fff;font-size:1rem;margin-bottom:12px}
.gh-footer ul{list-style:none}
.gh-footer a{color:#B8D8D6;text-decoration:none;display:block;padding:5px 0;font-size:.95rem}
.gh-footer a:hover{color:var(--gh-sun)}
.gh-footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.gh-footer-logo img{width:42px;height:42px}
.gh-footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding:20px 24px;font-size:.82rem;color:#8FB6B4;text-align:center}
