/*
Theme Name: SKF Theme
Theme URI: https://snehakarma.org
Author: Sneha Karma Foundation
Author URI: https://snehakarma.org
Description: Custom WordPress theme for the Sneha Karma Foundation (SKF). Faithfully implements the SKF homepage design reference — dark green and orange brand palette, Fraunces display headings with Inter body text — across the full template hierarchy (pages, blog, archives, search, 404). Fully Gutenberg-ready (wide/full alignment, editor styles) and Elementor-compatible, with a blank canvas page template and no CSS that fights Elementor widgets. Homepage hero, impact stats, programs, founder quote and donation tiers are editable from wp-admin via Advanced Custom Fields (ACF).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: skf-theme
Tags: one-column, custom-logo, custom-menu, custom-colors, editor-style, featured-images, full-width-template, translation-ready, wide-blocks, block-styles, accessibility-ready

Copyright © 2026 Sneha Karma Foundation.
SKF Theme is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 2 of the License, or (at your option) any later
version.
*/

/* ==========================================================================
   SKF THEME — DESIGN TOKENS
   Mirrors design-reference/homepage-mockup.html exactly.
   ========================================================================== */
:root {
  --skf-green: #00a25a;          /* primary brand green */
  --skf-green-dark: #00844a;     /* hover green */
  --skf-green-deep: #0a3d2e;     /* dark green — hero + footer backgrounds */
  --skf-green-deep-2: #062b21;   /* darker footer */
  --skf-orange: #ff6f00;         /* brand orange accent */
  --skf-orange-dark: #e05e00;    /* accent hover (decorative) */
  --skf-cta-orange: #c84f00;     /* AA orange button bg (white text 4.59:1) */
  --skf-cta-orange-dark: #a84200;/* AA orange button hover */
  --skf-orange-ink: #b84700;     /* AA orange text on light backgrounds */
  --skf-cta-green: #007a44;      /* AA green button/link bg (white text 5.43:1) */
  --skf-cta-green-dark: #006636; /* AA green hover */
  --skf-cream: #f4f7f2;          /* light section background */
  --skf-white: #ffffff;
  --skf-ink: #1f2a24;            /* body text */
  --skf-ink-soft: #4a5a50;       /* muted text */
  --skf-border: #dfe8e1;         /* hairlines */
  --skf-gold: #f6c945;

  --skf-font-head: 'Fraunces', Georgia, serif;
  --skf-font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --skf-container: 1200px;
  --skf-gutter: 24px;
  --skf-radius: 12px;
  --skf-radius-lg: 18px;
  --skf-shadow: 0 18px 40px rgba(10, 61, 46, .12);
  --skf-transition: .22s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--skf-font-body);
  color: var(--skf-ink);
  background: var(--skf-white);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--skf-cta-green); text-decoration: none; transition: color var(--skf-transition); }
a:hover, a:focus { color: var(--skf-cta-green-dark); }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--skf-font-head);
  color: var(--skf-green-deep);
  line-height: 1.2;
  margin-bottom: .6em;
}
h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }

p { margin-bottom: 1.2em; }

ul, ol { margin: 0 0 1.2em 1.6em; }
li { margin-bottom: .4em; }

blockquote {
  border-left: 4px solid var(--skf-green);
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--skf-ink-soft);
  margin-bottom: 1.2em;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--skf-border);
  border-radius: 10px;
  font-family: var(--skf-font-body);
  font-size: 16px;
  color: var(--skf-ink);
  background: var(--skf-white);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--skf-green); outline-offset: 1px; }

label { font-weight: 500; display: block; margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { border: 1px solid var(--skf-border); padding: 10px 14px; text-align: left; }
th { background: var(--skf-cream); font-weight: 600; }

/* Accessibility: screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--skf-green-deep); color: #fff;
  clip: auto !important; clip-path: none; display: block;
  height: auto; left: 5px; top: 5px; width: auto; z-index: 100000;
  padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--skf-green-deep); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Visible, high-contrast keyboard focus indicator */
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--skf-green-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero a:focus-visible, .hero button:focus-visible, .site-footer a:focus-visible,
.site-footer button:focus-visible, .quote a:focus-visible, .cta-band a:focus-visible {
  outline-color: var(--skf-gold);
}

/* Admin bar offset for sticky header */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.container { max-width: var(--skf-container); margin: 0 auto; padding: 0 var(--skf-gutter); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--skf-font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--skf-transition); text-decoration: none;
}
.btn--primary { background: var(--skf-cta-orange); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--skf-cta-orange-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover, .btn--outline:focus { background: rgba(255,255,255,.12); color: #fff; }
.btn--green { background: var(--skf-cta-green); color: #fff; }
.btn--green:hover, .btn--green:focus { background: var(--skf-cta-green-dark); color: #fff; }
.btn--white { background: #fff; color: var(--skf-green-deep); }
.btn--white:hover, .btn--white:focus { background: var(--skf-cream); color: var(--skf-green-deep); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--skf-white);
  border-bottom: 1px solid var(--skf-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 0;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.custom-logo-link img { height: 48px; width: auto; }
.site-branding__text { line-height: 1.15; }
.site-title { font-family: var(--skf-font-head); font-size: 24px; font-weight: 700; color: var(--skf-green-deep); margin: 0; }
.site-title a { color: var(--skf-green-deep); }
.site-title a:hover { color: var(--skf-green-dark); }
.site-description { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--skf-ink-soft); margin: 0; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--skf-ink);
  font-weight: 500; font-size: 16px; border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus { color: var(--skf-cta-green-dark); background: var(--skf-cream); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--skf-cta-green); font-weight: 600; }
.main-nav .menu-item-has-children > a::after {
  content: ''; display: inline-block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-left: 8px; margin-bottom: 2px;
}
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--skf-white); border: 1px solid var(--skf-border);
  border-radius: 10px; box-shadow: var(--skf-shadow);
  display: none; flex-direction: column; gap: 0; padding: 8px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 9px 12px; font-size: 15px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 22px; font-size: 15px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle:focus { outline: 2px solid var(--skf-green); }
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: var(--skf-green-deep); margin: 5px 0; border-radius: 3px; transition: all var(--skf-transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--skf-green-deep) 0%, var(--skf-green-deep-2) 100%);
  color: #fff;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; bottom: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: rgba(0, 162, 90, .28); filter: blur(6px);
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--skf-gold);
  border: 1px solid rgba(246, 201, 69, .5); border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.hero__title {
  font-family: var(--skf-font-head); font-weight: 700; font-size: 58px;
  line-height: 1.08; letter-spacing: -.01em; margin-bottom: 22px; color: #fff;
}
.hero__title .accent { color: var(--skf-gold); }
.hero__subhead { font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 580px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero__stat {
  display: inline-flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--skf-radius); padding: 16px 26px;
}
.hero__stat-number { font-family: var(--skf-font-head); font-size: 44px; font-weight: 700; color: var(--skf-gold); line-height: 1; }
.hero__stat-label { font-size: 15px; color: rgba(255,255,255,.85); max-width: 160px; line-height: 1.4; margin: 0; }

/* ==========================================================================
   IMPACT STATS BAND
   ========================================================================== */
.impact { margin-top: -56px; position: relative; z-index: 5; }
.impact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--skf-white); border-radius: var(--skf-radius-lg);
  box-shadow: var(--skf-shadow); padding: 34px 28px;
}
.impact__item { text-align: center; padding: 8px; }
.impact__number { font-family: var(--skf-font-head); font-size: 46px; font-weight: 700; color: var(--skf-green); line-height: 1; }
.impact__label { margin-top: 10px; font-size: 15px; color: var(--skf-ink-soft); font-weight: 500; }
.impact__item + .impact__item { border-left: 1px solid var(--skf-border); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 96px 0; }
.section--cream { background: var(--skf-cream); }
.section--green { background: var(--skf-green-deep); color: #fff; }
.section--green h1, .section--green h2, .section--green h3, .section--green h4 { color: #fff; }
.section--green a { color: var(--skf-gold); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--skf-cta-green); margin-bottom: 14px; display: block;
}
.section--green .section__eyebrow { color: var(--skf-gold); }
.section__title {
  font-family: var(--skf-font-head); font-size: 40px; font-weight: 700;
  line-height: 1.15; color: var(--skf-green-deep); margin-bottom: 18px;
}
.section--green .section__title { color: #fff; }
.section__intro { font-size: 18px; color: var(--skf-ink-soft); }
.section--green .section__intro { color: rgba(255,255,255,.8); }

/* ==========================================================================
   PROGRAMS
   ========================================================================== */
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card {
  background: var(--skf-white); border-radius: var(--skf-radius-lg);
  overflow: hidden; border: 1px solid var(--skf-border);
  display: flex; flex-direction: column;
  transition: transform var(--skf-transition), box-shadow var(--skf-transition);
}
.program-card:hover, .program-card:focus-within { transform: translateY(-6px); box-shadow: var(--skf-shadow); }
.program-card__media { height: 210px; background: linear-gradient(135deg, #d9f2e4, #bfe9d2); position: relative; }
.program-card__media-icon {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  display: grid; place-items: center; border-radius: 20px; background: var(--skf-white);
  box-shadow: var(--skf-shadow);
}
.program-card__media-icon svg { width: 38px; height: 38px; fill: var(--skf-green); }
.program-card__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.program-card__title { font-family: var(--skf-font-head); font-size: 24px; font-weight: 600; color: var(--skf-green-deep); margin-bottom: 12px; }
.program-card__excerpt { color: var(--skf-ink-soft); font-size: 16px; margin-bottom: 20px; }
.program-card__link { margin-top: auto; font-weight: 600; color: var(--skf-cta-green); display: inline-flex; align-items: center; gap: 8px; }
.program-card__link:hover, .program-card__link:focus { color: var(--skf-orange-ink); }
.program-card__link svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   FOUNDER QUOTE
   ========================================================================== */
.quote { background: var(--skf-green-deep); position: relative; overflow: hidden; }
.quote::before {
  content: '\201C'; position: absolute; top: -60px; left: 30px;
  font-family: var(--skf-font-head); font-size: 340px; line-height: 1;
  color: rgba(255,255,255,.06);
}
.quote__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.quote__mark { font-family: var(--skf-font-head); font-size: 60px; color: var(--skf-gold); line-height: 1; display: block; margin-bottom: 16px; }
.quote__text {
  font-family: var(--skf-font-head); font-size: 30px; font-weight: 400; font-style: italic;
  line-height: 1.4; color: #fff; margin-bottom: 30px;
}
.quote__author { color: var(--skf-gold); font-weight: 600; font-size: 17px; letter-spacing: .02em; margin: 0; }
.quote__author-role { color: rgba(255,255,255,.65); font-size: 15px; }

/* ==========================================================================
   DONATION TIERS
   ========================================================================== */
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tier-card {
  background: var(--skf-white); border: 2px solid var(--skf-border); border-radius: var(--skf-radius-lg);
  padding: 38px 30px; text-align: center; display: flex; flex-direction: column;
  transition: all var(--skf-transition);
}
.tier-card:hover { border-color: var(--skf-cta-green); box-shadow: var(--skf-shadow); }
.tier-card--featured { border-color: var(--skf-green); background: linear-gradient(180deg, #f2fbf6, #fff); position: relative; }
.tier-card--featured::before {
  content: 'MOST IMPACT'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--skf-cta-orange); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.tier-card__amount { font-family: var(--skf-font-head); font-size: 52px; font-weight: 700; color: var(--skf-green); line-height: 1; }
.tier-card__amount small { font-size: 20px; font-weight: 600; }
.tier-card__name { margin: 14px 0 12px; font-weight: 700; font-size: 17px; color: var(--skf-green-deep); }
.tier-card__desc { color: var(--skf-ink-soft); font-size: 15.5px; margin-bottom: 26px; flex: 1; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--skf-cta-green) 0%, var(--skf-cta-green-dark) 100%); padding: 70px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--skf-font-head); font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-band__text { color: rgba(255,255,255,.88); max-width: 520px; margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--skf-green-deep-2); color: rgba(255,255,255,.78); }
.footer-top { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 44px; }
.footer-brand__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand__text { font-size: 15px; color: rgba(255,255,255,.62); max-width: 300px; }
.site-footer .site-title a { color: #fff; }
.site-footer .site-title a:hover, .site-footer .site-title a:focus { color: var(--skf-gold); }
.footer-widget h3, .footer-widget .footer-widget__title,
.site-footer .wp-block-heading { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; letter-spacing: .02em; }
.footer-widget ul { list-style: none; margin: 0; }
.footer-widget ul li { margin-bottom: 12px; }
.footer-widget a { color: rgba(255,255,255,.72); font-size: 15px; }
.footer-widget a:hover, .footer-widget a:focus { color: var(--skf-gold); }
.footer-widget .widget-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-widget .widget { margin-bottom: 32px; }
.newsletter__form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.newsletter__input {
  flex: 1; min-width: 180px; padding: 12px 16px; border-radius: 999px; border: 0;
  font-family: var(--skf-font-body); font-size: 15px; background: rgba(255,255,255,.12); color: #fff;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__input:focus { outline: 2px solid var(--skf-gold); outline-offset: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom ul { list-style: none; display: flex; gap: 18px; margin: 0; }

/* ==========================================================================
   PAGE / BLOG CONTENT
   ========================================================================== */
.site-main { padding: 72px 0 96px; }
.site-main--narrow { max-width: 820px; margin: 0 auto; }
.site-main--builder { max-width: 100%; padding: 0; }
.site-main--builder .entry-content > * { max-width: 100%; }

.entry { margin-bottom: 56px; }
.entry-header { margin-bottom: 28px; }
.entry-title { font-family: var(--skf-font-head); font-size: 42px; font-weight: 700; color: var(--skf-green-deep); margin-bottom: 12px; }
.entry-meta { color: var(--skf-ink-soft); font-size: 15px; }
.entry-meta a { color: var(--skf-ink-soft); text-decoration: underline; }
.entry-meta a:hover { color: var(--skf-green-dark); }
.entry-meta > span { margin-right: 14px; }
.entry-content { font-size: 17px; }
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: var(--skf-radius); }
.entry-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--skf-border); font-size: 15px; color: var(--skf-ink-soft); }

.post-thumbnail { margin-bottom: 28px; border-radius: var(--skf-radius-lg); overflow: hidden; }

/* Page hero banner (for non-front pages) */
.page-hero {
  background: linear-gradient(135deg, var(--skf-green-deep) 0%, var(--skf-green-deep-2) 100%);
  color: #fff; padding: 70px 0;
}
.page-hero__title { font-size: 44px; color: #fff; margin: 0; }
.page-hero__breadcrumb { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 10px; }

/* Archive / search listing */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--skf-white); border: 1px solid var(--skf-border); border-radius: var(--skf-radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--skf-transition), box-shadow var(--skf-transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--skf-shadow); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 22px; margin-bottom: 10px; }
.post-card__title a { color: var(--skf-green-deep); }
.post-card__title a:hover { color: var(--skf-cta-green-dark); }
.post-card__meta { font-size: 14px; color: var(--skf-ink-soft); margin-bottom: 12px; }
.post-card__excerpt { color: var(--skf-ink-soft); font-size: 15.5px; margin-bottom: 16px; flex: 1; }
.post-card__link { font-weight: 600; color: var(--skf-cta-green); }

.archive-header, .search-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--skf-border); }
.archive-title, .search-title { font-size: 36px; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 14px; border: 1px solid var(--skf-border); border-radius: 10px; font-weight: 500;
}
.pagination .current { background: var(--skf-cta-green); color: #fff; border-color: var(--skf-cta-green); }
.pagination a:hover { border-color: var(--skf-green); color: var(--skf-green-dark); }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { padding: 12px 22px; border-radius: 999px; border: 0; background: var(--skf-cta-green); color: #fff; font-weight: 600; cursor: pointer; }
.search-form .search-submit:hover { background: var(--skf-cta-green-dark); }

/* 404 */
.error-404 { text-align: center; padding: 80px 0; }
.error-404__code { font-family: var(--skf-font-head); font-size: 140px; font-weight: 700; color: var(--skf-green); line-height: 1; }
.error-404 .search-form { margin: 28px auto; }

/* Comments */
.comments-area { margin-top: 48px; }
.comments-title { font-size: 26px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; }
.comment-list .comment { margin-bottom: 24px; }
.comment-body { border: 1px solid var(--skf-border); border-radius: var(--skf-radius); padding: 22px; }
.comment-meta { margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-metadata { font-size: 13px; color: var(--skf-ink-soft); }
.comment-content { font-size: 16px; }
.reply { margin-top: 12px; }
.reply a { font-weight: 600; font-size: 14px; }
.comment-form p { margin-bottom: 18px; }
.comment-form .submit { background: var(--skf-cta-green); color: #fff; border: 0; padding: 13px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--skf-cta-green-dark); }

/* ==========================================================================
   GUTENBERG / BLOCK SUPPORT
   ========================================================================== */
.alignwide { margin-left: calc(50% - min(50%, calc(var(--skf-container) / 2 - var(--skf-gutter) / 2))); margin-right: calc(50% - min(50%, calc(var(--skf-container) / 2 - var(--skf-gutter) / 2))); width: auto; max-width: min(100%, calc(100% + var(--skf-gutter) * 2)); }
.alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

.wp-block-button__link { border-radius: 999px; }
.wp-block-button.is-style-skf-pill .wp-block-button__link,
.is-style-skf-pill > .wp-block-button__link { border-radius: 999px; padding: 14px 28px; }
.wp-block-button.is-style-skf-outline .wp-block-button__link,
.is-style-skf-outline > .wp-block-button__link { border-radius: 999px; background: transparent !important; color: #fff; border: 2px solid rgba(255,255,255,.7); }

/* WordPress core classes */
.wp-caption { max-width: 100%; margin-bottom: 1.2em; }
.wp-caption img { width: 100%; }
.wp-caption-text, .wp-block-image figcaption, .wp-caption .wp-caption-text { font-size: 14px; color: var(--skf-ink-soft); text-align: center; padding: 8px 0 0; }
.sticky { }
.gallery-caption { }
.bypostauthor { }

/* ==========================================================================
   THIRD-PARTY COMPATIBILITY (scoped so nothing fights Elementor)
   --------------------------------------------------------------------------
   Elementor: theme rules are scoped to the .site-header, .hero, .site-main,
   .site-footer and .entry* namespaces. No global max-width, no body-level
   resets, and nothing targets .elementor-* so Elementor's own styles always
   win inside its widgets. iframes (Zeffy embeds, video embeds) are fluid.
   ========================================================================== */
iframe { max-width: 100%; }
.entry-content iframe { display: block; margin: 0 auto; }
.zeffy-embed iframe, iframe.zeffy-embed, .zeffy-embed { max-width: 100%; }

/* WPForms / CF7 general form niceties without fighting their CSS */
div.wpforms-container-full .wpforms-form input[type="submit"], div.wpforms-container-full .wpforms-form button[type="submit"] { border-radius: 999px; }

/* ==========================================================================
   RESPONSIVE — breakpoints mirror the mockup
   ========================================================================== */
@media (max-width: 1024px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .impact__item:nth-child(3) { border-left: 0; }
  .programs__grid, .tiers__grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__title { font-size: 46px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .entry-title { font-size: 36px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--skf-white);
    border-bottom: 1px solid var(--skf-border);
    display: none; flex-direction: column; padding: 10px 24px 20px;
    box-shadow: 0 24px 40px rgba(10, 61, 46, .1);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding-left: 18px; }
  .main-nav li:hover > .sub-menu { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 80px 0 120px; }
  .hero__title { font-size: 36px; }
  .hero__subhead { font-size: 17px; }
  .hero__stat-number { font-size: 36px; }
  .hero__stat { padding: 14px 20px; gap: 14px; }
  .impact__grid, .programs__grid, .tiers__grid, .post-grid { grid-template-columns: 1fr; }
  .impact__item + .impact__item { border-left: 0; border-top: 1px solid var(--skf-border); }
  .section__title { font-size: 32px; }
  .quote__text { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-title { font-size: 20px; }
  .site-main { padding: 48px 0 72px; }
  .page-hero { padding: 56px 0; }
  .page-hero__title { font-size: 34px; }
  .cta-band { padding: 56px 0; }
}
