/*
Theme Name: HASI Theme
Theme URI: https://hasi.org
Author: HASI
Author URI: https://hasi.org
Description: Health Awareness Storytelling Initiative — a fully editable, responsive WordPress theme with Customizer support, custom post types for Stories and Programs, and a UNICEF-style layout. Stories That Heal. Communities That Thrive.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
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: hasi-theme
Tags: custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout, translation-ready
*/

/* ─── DESIGN TOKENS ────────────────────────────── */
:root {
  --navy:        #1a2e5e;
  --navy-dark:   #0d1830;
  --green:       #2e7d32;
  --green-dark:  #1b5e20;
  --amber:       #c45e0a;
  --lime:        #4caf50;
  --white:       #ffffff;
  --off:         #f4f8f4;
  --text:        #1a1a2e;
  --muted:       #5a6a7a;
  --border:      #d0dde0;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --radius:      6px;
  --shadow:      0 4px 24px rgba(26,46,94,.10);
  --max-w:       1180px;
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}
p { line-height: 1.75; color: var(--text); }

/* ─── LAYOUT HELPERS ─────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 52px 0; }

.section-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}
.section-head { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .03em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .22s, color .22s, border-color .22s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-navy    { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-white   { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ─── TOPBAR ─────────────────────────────────────── */
#hasi-topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: 6px 0;
}
#hasi-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-info { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: 5px; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { color: rgba(255,255,255,.7); transition: color .2s; font-size: .76rem; }
.topbar-links a:hover { color: var(--lime); }

/* ─── HEADER ─────────────────────────────────────── */
#hasi-header {
  background: var(--white);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(26,46,94,.09);
}
#hasi-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding .custom-logo { height: 60px; width: auto; }
.site-branding .brand-text .site-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.site-branding .brand-text .site-tagline {
  font-size: .68rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .04em;
  display: block;
  margin-top: 2px;
}

/* ─── NAV ────────────────────────────────────────── */
#main-navigation { display: flex; align-items: center; gap: 4px; }
#main-navigation .menu { display: flex; align-items: center; gap: 4px; }
#main-navigation .menu-item a {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  display: block;
  letter-spacing: .02em;
}
#main-navigation .menu-item a:hover,
#main-navigation .menu-item.current-menu-item a { background: var(--navy); color: var(--white); }
.nav-donate-btn a {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  margin-left: 8px;
}
.nav-donate-btn a:hover { background: var(--green-dark) !important; }

/* sub-menus */
#main-navigation .menu-item { position: relative; }
#main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0;
}
#main-navigation .menu-item:hover > .sub-menu { display: block; }
#main-navigation .sub-menu .menu-item a {
  border-radius: 0; padding: 9px 18px; font-size: .8rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 7px 10px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: .3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── HERO ───────────────────────────────────────── */
#hasi-hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f45 55%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 70px 0;
}
#hasi-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--amber), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(76,175,80,.18);
  color: var(--lime);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(76,175,80,.35);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--lime); }
.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-frame {
  width: 100%;
  max-width: 440px;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(76,175,80,.3);
  position: relative;
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-frame .hero-logo-center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
}
.hero-img-frame .hero-logo-center img { width: 260px; height: auto; }

/* ─── STATS ──────────────────────────────────────── */
#hasi-stats { background: var(--navy); padding: 36px 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--lime);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .76rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* ─── ABOUT ──────────────────────────────────────── */
#hasi-about { background: var(--off); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img {
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  background: var(--border);
  position: relative;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img .logo-fill {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  padding: 40px;
}
.about-img .logo-fill img { max-width: 280px; }
.about-content .blockquote {
  border-left: 4px solid var(--green);
  padding-left: 18px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.6;
}
.pillars { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.pillar-item { display: flex; align-items: flex-start; gap: 14px; }
.pillar-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--navy); color: var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.pillar-text .pt { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--navy); }
.pillar-text .ps { font-size: .82rem; color: var(--muted); margin-top: 3px; }

/* ─── PROGRAMS ───────────────────────────────────── */
#hasi-programs { background: var(--white); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.program-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-thumb {
  height: 190px;
  background: var(--navy);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .thumb-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.card-thumb .thumb-logo img { max-width: 140px; }
.card-thumb-green { background: var(--green-dark); }
.card-thumb-navy  { background: var(--navy-dark); }
.card-body { padding: 22px 24px; }
.card-tag {
  font-family: var(--font-head);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card-body p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--green);
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.card-link:hover { border-color: var(--green); }

/* ─── IMPACT ─────────────────────────────────────── */
#hasi-impact {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f45 100%);
  padding: 80px 0;
}
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 52px; }
.impact-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 34px 28px;
  transition: background .25s;
}
.impact-card:hover { background: rgba(255,255,255,.12); }
.impact-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; color: var(--lime); display: block; line-height: 1; margin-bottom: 8px; }
.impact-card h3 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.impact-card p { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* ─── STORIES / BLOG ─────────────────────────────── */
#hasi-stories { background: var(--off); }
.stories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.story-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,46,94,.08);
  transition: box-shadow .25s, transform .25s;
}
.story-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story-thumb { height: 210px; overflow: hidden; background: var(--border); position: relative; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-card:hover .story-thumb img { transform: scale(1.04); }
.story-thumb .thumb-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, var(--navy), var(--green-dark)); }
.story-thumb .thumb-logo img { max-width: 140px; }
.story-body { padding: 22px; }
.story-meta { font-size: .72rem; color: var(--muted); font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.story-meta .dot { color: var(--amber); }
.story-card h3 { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.story-card p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }
.see-all { text-align: center; margin-top: 44px; }

/* ─── PARTNERS ───────────────────────────────────── */
#hasi-partners { background: var(--white); padding: 52px 0; }
.partners-label { text-align: center; font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.partner-logos { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.partner-logo {
  background: var(--off); border: 1.5px solid var(--border); border-radius: 8px;
  padding: 14px 24px; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--navy); min-width: 120px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.partner-logo:hover { border-color: var(--navy); box-shadow: 0 2px 10px rgba(26,46,94,.1); }

/* ─── CTA BAND ───────────────────────────────────── */
#hasi-cta { background: var(--green); padding: 72px 0; text-align: center; }
#hasi-cta h2 { font-size: clamp(1.6rem,2.5vw,2.3rem); color: var(--white); margin-bottom: 16px; }
#hasi-cta p  { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.7; max-width: 580px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── NEWSLETTER ─────────────────────────────────── */
#hasi-newsletter { background: var(--navy); padding: 52px 0; }
.newsletter-box { max-width: 620px; margin: auto; text-align: center; }
#hasi-newsletter h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 10px; }
#hasi-newsletter p  { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 13px 18px; border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; outline: none;
  background: rgba(255,255,255,.92);
}
.newsletter-form button {
  background: var(--green); color: var(--white); border: none;
  border-radius: var(--radius); padding: 13px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  white-space: nowrap; transition: background .2s;
}
.newsletter-form button:hover { background: var(--lime); }

/* ─── FOOTER ─────────────────────────────────────── */
#hasi-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 60px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand-logo { height: 70px; width: auto; margin-bottom: 14px; }
.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; color: var(--white); }
.footer-brand .brand-tag  { font-size: .72rem; color: var(--lime); font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .83rem; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: rgba(255,255,255,.6);
  transition: background .2s, color .2s;
  font-family: var(--font-head); font-weight: 700;
}
.social-btn:hover { background: var(--green); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  color: var(--white); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); margin-left: 20px; transition: color .2s; }
.footer-bottom a:hover { color: var(--lime); }

/* ─── PAGE / POST CONTENT ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  padding: 64px 0;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem,3vw,2.6rem); }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span { margin: 0 6px; }

.content-area { padding: 64px 0; }
.content-inner { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.entry-content { max-width: 100%; }
.entry-content h2,.entry-content h3 { margin: 32px 0 14px; }
.entry-content p  { margin-bottom: 18px; }
.entry-content ul,.entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content ul li { list-style: disc; margin-bottom: 8px; }
.entry-content ol li { list-style: decimal; margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--green);
  padding: 14px 20px;
  background: var(--off);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
}

/* Sidebar widget */
.widget-area { display: flex; flex-direction: column; gap: 32px; }
.widget { background: var(--off); padding: 24px; border-radius: var(--radius); }
.widget-title { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green); }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--navy); transition: color .2s; }
.widget ul li a:hover { color: var(--green); }

/* ─── ARCHIVE / BLOG ─────────────────────────────── */
.archive-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.post-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-thumb { height: 200px; overflow: hidden; background: var(--border); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 22px; }
.post-meta { font-size: .72rem; color: var(--muted); font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.post-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.post-title a { color: inherit; transition: color .2s; }
.post-title a:hover { color: var(--green); }
.post-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.read-more { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--green); border-bottom: 2px solid transparent; transition: border-color .2s; }
.read-more:hover { border-color: var(--green); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a,.pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  border: 1.5px solid var(--border); color: var(--navy); transition: background .2s, color .2s;
}
.pagination .current,.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ─── CONTACT ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form input,.contact-form textarea,.contact-form select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color .2s;
  margin-bottom: 16px; background: var(--white);
}
.contact-form input:focus,.contact-form textarea:focus { border-color: var(--green); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { width: 42px; height: 42px; background: var(--navy); color: var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item h4 { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.contact-item p  { font-size: .85rem; color: var(--muted); }

/* ─── CUSTOM POST: STORIES ───────────────────────── */
.single-hasi_story .page-hero { background: linear-gradient(135deg, var(--green-dark), var(--navy)); }
.story-single-content { max-width: 820px; margin: 0 auto; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner, .about-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { display: none; }
  .program-grid, .impact-grid, .stories-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .content-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .program-grid,.impact-grid,.stories-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  #main-navigation .menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  #main-navigation .menu.open { display: flex; }
  #main-navigation { position: relative; }
  .newsletter-form { flex-direction: column; }
  .topbar-links { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .section,.section-sm { padding: 48px 0; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}

/* ─── WORDPRESS CORE ─────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
}
.wp-caption { max-width: 100%; margin-bottom: 20px; }
.wp-caption-text { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: center; }
.aligncenter { margin: 0 auto 20px; display: block; }
.alignleft  { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; margin: 24px 0; }
.gallery-item img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); }

/* ─── ADMIN BAR OFFSET ───────────────────────────── */
.admin-bar #hasi-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #hasi-header { top: 46px; } }

/* ── SCROLL REVEAL ───────────────────────────────── */
.program-card, .story-card, .impact-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s, transform .25s;
}
.program-card.revealed, .story-card.revealed, .impact-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.program-card.revealed:hover, .story-card.revealed:hover { transform: translateY(-4px); }

/* ── HEADER SCROLLED ─────────────────────────────── */
#hasi-header.scrolled { box-shadow: 0 4px 24px rgba(26,46,94,.18); }

/* ── ADMIN BAR OFFSET ────────────────────────────── */
.admin-bar #hasi-topbar { margin-top: 32px; }
.admin-bar #hasi-header { top: 70px; }
@media (max-width: 782px) {
  .admin-bar #hasi-topbar { margin-top: 46px; }
  .admin-bar #hasi-header { top: 46px; }
}

/* ── TOPBAR STICKY FIX ───────────────────────────── */
#hasi-topbar { position: sticky; top: 0; z-index: 1000; }
#hasi-header { top: 38px; }
.admin-bar #hasi-header { top: 70px; }

/* ── BLOG PAGE ───────────────────────────────────── */
.blog-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: var(--white);
  transition: background .2s, color .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.filter-count {
  background: rgba(255,255,255,.2);
  font-size: .68rem;
  padding: 1px 6px;
  border-radius: 10px;
}
.filter-btn:not(.active) .filter-count {
  background: var(--off);
  color: var(--muted);
}

/* Featured post */
.blog-featured-post {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--off);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.featured-thumb { height: 340px; overflow: hidden; }
.featured-thumb a { display: block; height: 100%; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-featured-post:hover .featured-thumb img { transform: scale(1.03); }
.featured-thumb-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.featured-thumb-placeholder img { max-width: 160px; }
.featured-body { padding: 32px 32px 32px 0; }
.featured-title { font-size: 1.4rem; line-height: 1.3; margin: 10px 0 12px; }
.featured-title a { color: var(--navy); transition: color .2s; }
.featured-title a:hover { color: var(--green); }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-thumb-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.post-thumb-placeholder img { max-width: 100px; }

/* ── SINGLE POST ─────────────────────────────────── */
.single-post-header { background: linear-gradient(135deg, var(--navy), var(--green-dark)); }
.post-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  flex-wrap: wrap;
}
.post-share-bar .share-label {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.share-btn {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  transition: background .2s;
  display: inline-block;
}
.share-btn:hover { background: var(--green); color: var(--white); }
.share-btn.twitter { background: #000; }
.share-btn.twitter:hover { background: #333; }
.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #166fe5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.whatsapp:hover { background: #128c7e; }

/* Author box */
.author-box {
  background: var(--off);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 48px 0;
  border: 1.5px solid var(--border);
}
.author-avatar img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}
.author-avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); font-size: 1.8rem; flex-shrink: 0;
  border: 3px solid var(--green);
}
.author-info .author-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.author-info p { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* Related posts */
.related-posts { margin-top: 52px; }
.related-posts h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 900;
  color: var(--navy); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--green);
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card { border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); }
.related-card .rc-thumb { height: 140px; overflow: hidden; background: var(--navy); }
.related-card .rc-thumb img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.related-card:hover .rc-thumb img { transform:scale(1.05); }
.related-card .rc-body { padding: 14px; }
.related-card .rc-body h4 { font-family:var(--font-head);font-size:.85rem;font-weight:700;color:var(--navy);line-height:1.35; }
.related-card .rc-body h4 a { color:inherit;transition:color .2s; }
.related-card .rc-body h4 a:hover { color:var(--green); }
.related-card .rc-meta { font-size:.72rem;color:var(--muted);margin-top:6px; }

/* ── RESPONSIVE BLOG ─────────────────────────────── */
@media (max-width: 960px) {
  .blog-featured-post { grid-template-columns: 1fr; }
  .featured-thumb { height: 240px; }
  .featured-body { padding: 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .blog-filter-bar { gap: 6px; }
  .filter-btn { font-size: .72rem; padding: 6px 12px; }
}

/* ══════════════════════════════════════════════════
   BLOG PAGE STYLES
   ══════════════════════════════════════════════════ */

/* ── Blog controls bar ── */
.blog-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.blog-search-form {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.blog-search-form input {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .88rem;
  width: 240px;
  outline: none;
  transition: border-color .2s;
}
.blog-search-form input:focus { border-color: var(--green); }
.blog-search-form button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.blog-search-form button:hover { background: var(--green); }

.blog-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Featured post ── */
.blog-featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  min-height: 360px;
}
.bfp-thumb {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.bfp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bfp-logo-fill {
  width: 100%; height: 100%; min-height: 280px;
  background: linear-gradient(135deg,var(--navy),var(--green-dark));
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.bfp-logo-fill img { max-width: 180px; }
.bfp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,transparent 60%,rgba(0,0,0,.2));
}
.bfp-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.bfp-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bfp-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--navy);
  margin: 10px 0 12px;
  line-height: 1.3;
}
.bfp-title a { color: inherit; transition: color .2s; }
.bfp-title a:hover { color: var(--green); }
.bfp-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.bfp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
}
.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ── Blog card grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,46,94,.07);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card-thumb-link { display: block; }
.blog-card-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--border);
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,transparent 60%,rgba(0,0,0,.2));
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0;
  line-height: 1.4;
}
.blog-card-title a { color: inherit; transition: color .2s; }
.blog-card-title a:hover { color: var(--green); }
.blog-card-excerpt { font-size: .83rem; color: var(--muted); line-height: 1.65; flex: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.blog-card-meta .dot { color: var(--green); }

/* ── Blog pagination ── */
.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.blog-pagination a,
.blog-pagination span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  color: var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}
.blog-pagination .current,
.blog-pagination a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ══════════════════════════════════════════════════
   SINGLE POST STYLES
   ══════════════════════════════════════════════════ */
.post-hero { padding: 52px 0 44px; min-height: auto !important; }
.post-tag-badge {
  display: inline-block;
  background: rgba(76,175,80,.2);
  color: var(--lime);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(76,175,80,.35);
  margin-bottom: 12px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin-top: 16px;
  flex-wrap: wrap;
}
.author-avatar-lg {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}
.author-name { color: var(--white); font-weight: 600; }

.post-featured-img { padding: 24px 0 0; background: var(--white); }
.post-featured-img img { border-radius: 12px; max-height: 500px; object-fit: cover; }

.post-body-wrap { background: var(--white); padding: 52px 0 72px; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
}
.post-content-col { min-width: 0; }
.entry-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.entry-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--navy); }
.entry-content h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--navy); }
.entry-content p  { margin-bottom: 20px; }
.entry-content ul { padding-left: 22px; margin-bottom: 20px; }
.entry-content ul li { list-style: disc; margin-bottom: 8px; }
.entry-content ol { padding-left: 22px; margin-bottom: 20px; }
.entry-content ol li { list-style: decimal; margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }
.entry-content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  background: var(--off);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}
.entry-content a { color: var(--green); border-bottom: 1px solid rgba(46,125,50,.3); transition: border-color .2s; }
.entry-content a:hover { border-color: var(--green); }

/* Tags */
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.tags-label { font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-tag {
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  background: var(--off); border: 1.5px solid var(--border); color: var(--navy);
  transition: background .2s, border-color .2s;
}
.post-tag:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
}
.share-label { font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.share-btn {
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: opacity .2s, transform .15s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-twitter  { background: #000; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-copy     { background: var(--off); color: var(--navy); border: 1.5px solid var(--border) !important; }

/* Author box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--off);
  border-radius: 10px;
  padding: 24px;
  margin: 36px 0;
}
.author-box-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); flex-shrink: 0; }
.author-box-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.author-box-bio  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* Post nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.post-nav-prev, .post-nav-next { display: flex; flex-direction: column; gap: 6px; }
.post-nav-next { text-align: right; }
.post-nav-label { font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-nav a { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--navy); transition: color .2s; line-height: 1.4; }
.post-nav a:hover { color: var(--green); }

/* Comments */
.post-comments { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; }
.comment-body { background: var(--off); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.comment-author b { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--navy); }
.comment-metadata { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.comment-content { font-size: .88rem; line-height: 1.7; margin-top: 10px; }
.comment-reply-link { font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: var(--green); }
#respond h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin: 24px 0 16px; }
#respond input, #respond textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .88rem;
  outline: none; transition: border-color .2s; margin-bottom: 12px;
}
#respond input:focus, #respond textarea:focus { border-color: var(--green); }
#respond textarea { min-height: 120px; }
#respond .submit { background: var(--green); color: var(--white); border: none; padding: 12px 28px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; cursor: pointer; }
#respond .submit:hover { background: var(--green-dark); }

/* Post sidebar widgets */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.sidebar-widget { background: var(--off); border-radius: 10px; padding: 22px; }
.sidebar-widget-dark { background: var(--navy); }
.sidebar-widget .widget-title {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  color: var(--navy); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green);
}

/* Related posts */
.related-posts { display: flex; flex-direction: column; gap: 12px; }
.related-post-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.related-post-item:hover .related-title { color: var(--green); }
.related-thumb { width: 64px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--border); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-logo { width: 100%; height: 100%; background: linear-gradient(135deg,var(--navy),var(--green-dark)); display: flex; align-items: center; justify-content: center; padding: 6px; }
.rp-logo img { max-width: 40px; }
.related-info { display: flex; flex-direction: column; gap: 3px; }
.related-title { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--navy); line-height: 1.35; transition: color .2s; }
.related-date  { font-size: .72rem; color: var(--muted); }

/* ── RESPONSIVE: Blog & Single ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .blog-featured-post { grid-template-columns: 1fr; }
  .bfp-thumb { min-height: 240px; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-controls { flex-direction: column; }
  .blog-search-form input { width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .author-box { flex-direction: column; }
  .post-share { gap: 8px; }
}

/* ══════════════════════════════════════════════════
   YOUTUBE VIDEO PLAYER STYLES
   ══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.hasi-video-player {
  margin: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
  position: relative;
}

/* ── Thumbnail / poster layer ── */
.hvp-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  cursor: pointer;
  overflow: hidden;
  background: #000;
}
.hvp-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .3s ease;
}
.hvp-thumbnail:hover .hvp-thumb-img {
  transform: scale(1.03);
  filter: brightness(.85);
}

/* dark gradient overlay */
.hvp-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 100%);
  transition: background .3s;
}
.hvp-thumbnail:hover .hvp-overlay {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
}

/* ── Play button ── */
.hvp-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px; height: 80px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), filter .2s;
  z-index: 3;
}
.hvp-play-btn svg { width: 80px; height: 80px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.5)); }
.hvp-thumbnail:hover .hvp-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 0 20px rgba(76,175,80,.6));
}
.hvp-play-btn svg circle { transition: fill .2s; }
.hvp-thumbnail:hover .hvp-play-btn svg circle { fill: rgba(46,125,50,.85); }

/* ── YouTube badge (top-right) ── */
.hvp-yt-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  opacity: .9;
  transition: opacity .2s;
}
.hvp-thumbnail:hover .hvp-yt-badge { opacity: 1; }

/* ── Caption preview (bottom of thumbnail) ── */
.hvp-caption-preview {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-family: var(--font-head);
  font-weight: 600;
  z-index: 3;
  letter-spacing: .01em;
}

/* ── Iframe container ── */
.hvp-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.hvp-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Caption below player ── */
.hvp-caption {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  line-height: 1.55;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 0 0 12px 12px;
}
.hvp-caption-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

/* ── "Video top" wrapper (above featured image) ── */
.post-video-top {
  background: #0d0d0d;
  padding: 24px 0;
}
.post-video-top .hasi-video-player {
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Sidebar video widget ── */
.sidebar-video-widget {
  border: 2px solid var(--green) !important;
}

/* ── Related post video badge ── */
.related-thumb { position: relative; }
.rp-video-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,.7);
  color: var(--lime);
  font-size: .6rem;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.4;
}

/* ── Animate player in ── */
@keyframes hvp-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hasi-video-player { animation: hvp-fadein .4s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hvp-play-btn { width: 60px; height: 60px; }
  .hvp-play-btn svg { width: 60px; height: 60px; }
  .post-video-top { padding: 16px 0; }
}
